Google Analytics

  • google-analytics
  • ga4
  • analytics
  • tracking
  • customizer

Use this guide to set up Google Analytics 4 (GA4) on Dirigible. For every other tracking ID, Tag Manager, pixels, and raw snippet fields, see Adding tracking codes.

Create a Google Analytics 4 property

GA4 is the current Analytics product. Universal Analytics property IDs (UA-…) are retired.

  1. Sign in to Google Analytics.
  2. Create an account and a GA4 property for your website (or open an existing one).
  3. Add a Web data stream for your site URL.
  4. Copy the Measurement ID. It looks like G-XXXXXXXXXX.

Google’s Getting started with Analytics walkthrough covers account and property setup if you are new to the product.

Add the ID in Dirigible

  1. Go to Appearance → Customize.
  2. Open Scripts & Embeds → Analytics & Tracking.
  3. Paste your Measurement ID into Google Analytics ID.
  4. Click Publish.

Paste only the Measurement ID — not a full gtag install snippet. If Google Tag Manager already loads this GA4 property, leave Google Analytics ID empty and use Google Tag Manager ID instead (see Adding tracking codes).

Confirm it works

  1. Open your site in a private/incognito window (accept the cookie banner if GDPR Banner is enabled).
  2. Browse a few pages.
  3. In Google Analytics, use Realtime (or Tag Assistant) to confirm hits arrive.

Allow a short delay after publishing. Staging or local sites may disable third-party tags — check with your developer if nothing fires outside production.

Search Console (optional)

Search Console is separate from Analytics.

  1. Add your property in Google Search Console.
  2. If Google asks for HTML-tag verification, paste the value into Google Site Verification ID on the same Analytics & Tracking panel (often shaped like google-site-verification=…).
  3. After verification, submit your sitemap (often yoursite.com/wp-sitemap.xml).

Tips

  • Prefer Google Analytics ID over pasting gtag into Custom Embeds or a page block.
  • Leave Track Admin Sessions off on live sites so your own logged-in browsing is not counted.
  • Load strategy, other pixels, GTM, and Custom Embed slots are covered in Adding tracking codes.