Set up Google Analytics 4

Install the Google tag for GA4, check that data is flowing, and connect GA4 to PingAura AI to measure the traffic AI assistants send you.

Updated

Use Google Tag Manager (GTM) to add Google Analytics 4 to your site without editing code.

Already have GA4 on your site? Skip to Connect to PingAura AI.

Before you begin

  • A GA4 account and property.
  • A web data stream for your website.
  • Access to the GTM container for the site.
  • The container is installed on your site (or you can add it).
  • Access to the GA4 property (Viewer is enough for PingAura AI; you need edit access in GTM to add the tag).

Step-by-step setup

  1. Open GTM and select your web container.
  2. Create a new Tag and choose Google tag as the type.
  3. Enter your Measurement ID (G-XXXXXXX). Find it in GA4 under Admin → Data streams, then your web stream.
  4. Add a trigger for All Pages.
  5. Save the tag.

Note: The Google tag is the current tag type in GTM and replaces the older configuration tag. If you are moving from the old tag, remove it so each visit is not counted twice.

Verify and publish

  1. Click Preview to open Tag Assistant and connect it to your site.
  2. Confirm the tag fires and events appear in the Realtime report.
  3. Click Submit in GTM and publish the container version.

Learn more: Set up Google Analytics in Tag Manager.

Connect to PingAura AI

  1. In PingAura AI, open AI Traffic for your domain and go to the GA4 tab.
  2. Click Connect GA4 and sign in with a Google account that can see the property.
  3. In Select a GA4 Property, pick the property for your site.

PingAura AI asks for read-only access. It never changes your Analytics settings.

PingAura AI only counts visits to your domain, and treats www.example.com and example.com as the same site. If your PingAura AI domain tracks one section of a site, such as example.com/business, the GA4 tab still shows the whole site, because Google Analytics cannot filter by path.

Data Latency

  • Analytics data is usually about a day behind.

FAQs

What access does PingAura AI need to my GA4 property?

Viewer access is enough. PingAura AI asks for read-only access and never changes your Analytics settings.

Do www and non-www count as different sites?

No. PingAura AI treats www.example.com and example.com as the same site, and only counts visits to your domain.

Why does the GA4 tab show my whole site?

If your PingAura AI domain tracks one section of a site, the GA4 tab still shows the whole site, because Google Analytics cannot filter by path.

Why are my visits counted twice?

You may still have the older configuration tag in Tag Manager next to the new Google tag. Remove the old tag so each visit is counted once.

How current is the GA4 data?

Analytics data is usually about a day behind.