Skip to content
English
  • There are no suggestions because the search field is empty.

Setting Up Google Analytics 4 with WordPress

Learn how to implement and verify GA4 tracking for accurate performance insights.

How to Install Google Analytics 4 (GA4) for Accurate Website Tracking

Google Analytics 4 (GA4) provides essential insights into how visitors engage with your website. Setting it up properly ensures you capture all the data needed to optimize your site’s performance and marketing. Here’s a step-by-step guide for installing GA4 with Google Tag Manager or a WordPress plugin, plus how to verify your setup.

1. Create a GA4 Property

  • Go to Google Analytics and log in.
  • Click Admin, then Create Property.
  • Enter your website details and follow prompts to generate a new GA4 property.

2. Install GA4 with Google Tag Manager

Step-by-Step:

  1. Create a GA4 Measurement ID:
    In your new GA4 property, go to Admin > Data Streams > Web. Copy your “Measurement ID” (looks like G-XXXXXXXXXX).
  2. Open Google Tag Manager:
    Log in, select your website’s container, then click Tags > New.
  3. Add a GA4 Configuration Tag:
    • Choose Tag Type: “Google Analytics: GA4 Configuration”.
    • Paste your Measurement ID.
    • Set the trigger to All Pages.
  4. Save and Publish:
    Save your tag and publish the container.
  5. Test the Setup:
    Use the Preview mode in Tag Manager and visit your site to ensure the GA4 tag fires.

3. Install GA4 with WordPress Plugin (Site Kit)

Alternative Easy Option:

  1. In your WordPress dashboard, go to Plugins > Add New.
  2. Search for “Site Kit by Google” and install/activate it.
  3. Launch Site Kit and follow the prompts to connect your Google account and set up Analytics.
  4. Choose your GA4 property from the list.
  5. Site Kit automatically places the tracking code on your site.

4. Verify Tracking with Real-Time Reports

  • Open your GA4 dashboard and go to Reports > Real-time.
  • Visit your website (use a private/incognito window for a new session).
  • You should see your activity appear in the real-time overview.
  • If you don’t see any users, double-check your tag or plugin setup.

5. Pro Tips

  • Don’t double-count:
    Make sure you don’t have both Tag Manager and a plugin installing GA4 tags on the same site at once.
  • Set up conversions:
    In GA4, define key events (form submissions, purchases, button clicks) as conversions for deeper insights.
  • Check regularly:
    Confirm tracking is working after major site updates or changes to plugins/themes.

Summary:
With GA4 and proper tracking setup—either through Google Tag Manager or Site Kit—you’ll have the data foundation for smarter decisions and better website outcomes. Always verify tracking to ensure every visit and event is measured accurately.