Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…
About GAinWP Google Analytics Integration for WordPress
The GAinWP Google Analytics Integration for WordPress plugin allows you to easily integrate Google Analytics tracking and dashboard reporting into your website. It offers a range of features such as real-time stats, in-depth reports, customizable tracking code, and privacy-oriented options. The plugin is compatible with multisite network installs and has a long-term goal of providing an open Google Analytics WordPress API for integration with other plugins and themes.Screenshots








Frequently asked questions
What does the GAinWP plugin do?
The GAinWP Google Analytics Integration for WordPress plugin easily integrates Google Analytics tracking and dashboard reporting into your website.
Why was GAinWP created?
GAinWP was created from the excellent Google Analytics Dashboard for WordPress (GADWP) plugin to maintain a simple, direct Google Analytics integration for those concerned about data privacy.
What are the features of GAinWP?
GAinWP provides a set of general Google Analytics stats, in-depth page reports, in-depth post reports, and customizable tracking code. It also has user privacy oriented features and supports custom dimensions and events.
What can you track with GAinWP?
GAinWP allows you to easily track various events like downloads, emails, outbound links, affiliate links, fragment identifiers, telephone, and page scrolling depth. It also supports custom event categories, actions, and labels using annotated HTML elements.
Is GAinWP compatible with multisite network installs?
Yes, GAinWP is fully compatible with multisite network installs and offers three setup modes for different configurations.
Changelog
6.1.0
- New: form tracking for Gravity Forms, Contact Form 7 and WPForms, on by default. Successful submissions send
form_complete, orgenerate_leadorsign_upfor forms you set to Lead or Sign-up, with the form’s ID and name, including AJAX forms and forms that redirect. - New: goals with values. Mark results as goals, give them a value and a currency, and set per-form values.
- New: GA4’s
loginandsign_upevents for WordPress logins and registrations, andcomment_submitfor comments. - New: GA4 setup tab listing the custom dimensions, key events and GA4 settings your configuration needs, with warnings when Site Kit adds the same tag or events.
- New: page attributes for content type and ID, content group, and the primary category from Yoast SEO or Rank Math.
- New:
gainwp.track()in JavaScript and a PHP recorder for sending your own events;gainwp_event,gainwp_event_recordedandgainwp_integrationshooks. - Changed: page attribute parameters renamed to GA4-style names (
content_author,content_category,content_tags,content_publish_month,user_status);publish_yearremoved. See “Upgrading from 6.0”. - Changed: page attributes are sent with
gtag('config')instead ofgtag('set'), so they reliably apply to every event. - Changed: engagement events now work in Tag Manager mode, and links marked
rel="sponsored"count as affiliate links. - Changed: scroll depth stops at 75%; GA4’s enhanced measurement covers 90%.
- Changed: authors are always sent by display name; the username option was removed.
- Fixed: a visitor’s opt-out is honored even after the site turns the opt-out shortcode off.
- Fixed: link click events no longer send the Universal Analytics
transport_typeparameter.
6.0.0
- Rewritten for Google Analytics 4 and modern WordPress (PHP 7.4+, WordPress 6.0+).
- New: Google Consent Mode v2 defaults, Global Privacy Control support, scroll depth for GA4, opt-out for Tag Manager sites.
- Settings move to Settings Google Analytics, with a status summary.
- Settings from 5.x are migrated automatically. See “Upgrading from 5.x”.
- Removed Universal Analytics, dashboard reports and real-time stats, Google sign-in, and features Google has discontinued.
5.4.6
- Last Universal Analytics release.
