You can connect Google Analytics and Google Tag Manager to your site from the project dashboard. Google tracking is added to your site for each ID you enter.
Before you start, set up your Google Analytics account and property, or your Google Tag Manager container. To learn how, see [GA4] Set up Analytics for a CMS-hosted website.
The field takes Google tag IDs (such as G- or AW-) and Google Tag Manager IDs (GTM-). You can add more than one.
To add Google Analytics or Google Tag Manager:
-
In the project list, click the Project Dashboard icon next to the project.
In Vibe, you can also click the Manage tab in the Vibe workspace.
-
In the side panel, click Settings (gear icon), then click Google Tools.
-
In the Google Analytics, Tag, and Tag Manager field, type your ID. To add another, press Enter or Space, then type the next one.
-
Click outside the field. A message confirms your changes were saved.
-
Republish your site for the changes to take effect on your live site.
The Google Analytics integration anonymizes visitor IP addresses by default. To learn more, see Google's documentation.
If you use Google Tag Manager:
-
Set up your tags and triggers in Google Tag Manager. To learn how, see Google's documentation.
-
Tags run only on your live, published site, so test them there.
-
Don't change the dataLayer setting in Google Tag Manager. The integration depends on it.
Note
To add tracking code yourself instead, add it in only one place on your site. The same code in more than one place can cause verification to fail.
-
Editor sites: In the editor's side panel, click More, then Settings, then Head HTML. Paste the code into the Head HTML or Body End HTML field. See Custom Code.
-
Vibe projects: Paste the code into Copilot and say whether to add it to every page or only specific pages.
Following are several reasons your analytics might not be working properly:
-
Your site is not published. Google Analytics only tracks on live sites.
-
You are using an ad blocker that is preventing Google Analytics from recording your visit.
-
It has been less than 24 hours since you set up the integration. Sometimes it takes Google Analytics up to 24 hours to start tracking.