# Connect Google Analytics and Tag Manager

Send your site's visits and leads to Google Analytics, or load your own Google Tag Manager container.

Audience: dealer-managers
Availability: available
Canonical source: https://rooftoprv.com/docs/connect-google-analytics

Turn on Google Analytics to measure visits and leads on your site in your own Google Analytics account. Turn on Google Tag Manager to load your container, for Google Ads conversion tracking and other tags you manage there.

## Before you start

- You need the **View settings** permission to open **Integrations**. To reach it from the menu, you also need **View team**.
- You need the **Edit general settings** and **Manage integrations** permissions to save changes.
- For Google Analytics, you need a Google Analytics 4 property with a web data stream. Its measurement ID starts with **G-**.
- For Tag Manager, you need a web container. Its container ID starts with **GTM-**.
- If your container already sends visits to Google Analytics, turn on only Tag Manager. Turning on both counts each visit twice.

## Turn on Google Analytics

1. Go to **Admin** > **Integrations** > **Google**.
2. Turn on **Google Analytics**.
   A **Measurement ID** field appears.
3. Paste your measurement ID. In Google Analytics, you find it under **Admin** > **Data streams**, on your web stream.
4. Select **Save changes**.
   "Google settings saved" appears.

## Turn on Google Tag Manager

1. Go to **Admin** > **Integrations** > **Google**.
2. Turn on **Google Tag Manager**.
   A **Container ID** field appears.
3. Paste your container ID. It shows at the top of your workspace in Google Tag Manager.
4. Select **Save changes**.
   "Google settings saved" appears.

## What happens next

The tags load on every page of your public site. They don't load in your admin or on a site preview.

Your site sends these events to Google Analytics. Tag Manager receives the same events in its data layer, so you can use them as triggers.

| Event | When it's sent |
|---|---|
| `page_view` | A shopper opens a page. Google Analytics counts pages after the first through your web stream's enhanced measurement, which is on by default |
| `view_item` | A shopper opens an RV's page |
| `generate_lead` | A shopper sends a lead or contact form |
| `sign_up` | A shopper joins your mailing list |
| `add_to_wishlist` | A shopper saves an RV |
| `search` | A shopper picks a search result |

Your privacy policy names each tag that's on, if it includes the analytics disclosure. New sites include it. If you edited your privacy policy, add it yourself: open the page in **Website** > **Pages**, type `/analytics`, and pick **Analytics disclosure**. It updates by itself when you turn a tag on or off.

## Troubleshooting

**"Enter a Google Analytics measurement ID that starts with G-"**
The ID you entered isn't a Google Analytics 4 measurement ID. Copy it again from your web data stream.

**"Enter a Google Tag Manager container ID that starts with GTM-"**
Copy the container ID from the top of your Tag Manager workspace.

**Visits are counted twice**
Google tag code for another ID in **Website** > **Settings** > **Custom code** sends its own visits, and a container that sends visits to Google Analytics doubles them if Google Analytics is also on here. Remove the extra code, or turn off one of the two.

**I don't see visits in Google Analytics right away**
Open **Reports** > **Realtime** in Google Analytics and visit your site. Visitors with an ad blocker aren't counted.

## Related guides

- [Connect Google Search Console](https://rooftoprv.com/docs/connect-google-search-console)
- [Connect Google vehicle ads](https://rooftoprv.com/docs/connect-google-vehicle-ads)
