GAinWP Google Analytics Integration for WP
GAinWP adds Google Analytics 4 (or a Google Tag Manager container) to your site and sends the events and dimensions that show what your site achieves, not just how many people visit. It uses GA4’s own event names, so results work in GA4 reports, Google Ads and anything else that reads GA4. It has no
GAinWP adds Google Analytics 4 (or a Google Tag Manager container) to your site and sends the events and dimensions that show what your site achieves, not just how many people visit. It uses GA4’s own event names, so results work in GA4 reports, Google Ads and anything else that reads GA4. It has no dashboards or upsells, and your data goes straight to Google.
Track results, not just traffic
- Form leads: an event for every successful submission in Gravity Forms, Contact Form 7 and WPForms, whether the form uses AJAX, reloads the page or redirects to a thank-you page. Failed validation and spam don’t count. Set the forms that bring you business to Lead and they send GA4’s generate_lead ; a sign-up form can send sign_up . Other forms send form_complete , so a newsletter or search form never counts as a lead. Field values are never sent.
- Goals with values: mark the results that matter as goals and say what each is worth, for example $100 for a lead. Goals send their value to GA4 and, through it, Google Ads; per-form values override the default.
- WordPress events: logins and registrations as GA4’s login and sign_up , and comments as comment_submit .
- Engagement events that GA4 enhanced measurement doesn’t cover: email and phone link clicks, affiliate link clicks (including rel="sponsored" links), same-page anchor clicks, and scroll depth at 25, 50 and 75%.
Page attributes
Sent with every event, under GA4-style names: content type and ID (built into GA4), author, primary category (Yoast SEO and Rank Math’s primary category supported), tags, publication month, content group, and whether the visitor is logged in.
GA4 setup checklist
A GA4 setup tab lists exactly what to do in Google Analytics for your settings: which custom dimensions to register, which events to mark as key events, and which GA4 settings to change (currency, data retention, enhanced measurement, data redaction). It also warns when Site Kit by Google adds the same tag or events, which would count them twice.
Google Analytics 4 and Tag Manager
- Paste your Measurement ID (G-XXXXXXXXXX), or your Tag Manager container ID.
- In Tag Manager mode, page attributes go to the data layer (under their GA4 names and GAinWP 5.x’s gainwp* names) and events are pushed as { event, intelligence: { ... } } .