# Tracking Events on Your Wix Site with a Google Analytics Measurement ID

Source: https://support.wix.com/en/article/tracking-events-on-your-wix-site-with-a-google-analytics-property (updated 2026-01-29)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

With Google Analytics, you can track information about people who visit your site. You can see information like the number of visitors to a page, where visitors come from, how long they stay, and what keywords they use to find your site.

Follow the steps in this article to get the measurement ID of your Google Analytics property and connect Google Analytics to your site.

> **Before you begin:** To use Google Analytics with your site, you must have a [Premium](https://www.wix.com/upgrade/website) site and a [connected domain](https://support.wix.com/en/article/connecting-a-domain-you-own-to-your-wix-site).

> **Important:**
>
> * By using this service, you are engaging directly with a third-party service provider. We recommend reviewing the service provider's Privacy Policy and Terms of Use prior to your use of such third-party service. You acknowledge that we are not liable for any loss or damage resulting from your use of such third-party service, including any liability arising from any personal data exchanged between you and such third-party.
> * You should make sure that your use of Google Analytics is compliant with local data protection regulations. [Learn more about Google Analytics and the GDPR](https://support.wix.com/en/article/about-google-analytics-and-the-gdpr)
> * If your site [uses a cookie banner](https://support.wix.com/en/article/displaying-a-cookie-banner-on-your-site), Google Analytics will only gather data after a visitor provides consent and approves using the relevant cookies. For this reason, it is normal if you see a drop in your Google Analytics numbers. However, if you don't have a cookie banner and a site visitor comes from a country that requires consent (e.g. those covered by GDPR) no data is sent to Google Analytics. Google only tracks sessions where visitors give explicit consent.

---

## Step 1 | Get your Google Analytics 4 property ID

First, you need to create a Google Analytics 4 (GA4) property in your Google Analytics account and get its measurement ID.

### To get your GA4 property ID:

1. Sign in to [your Google Analytics account](https://analytics.google.com/analytics/web/).
2. Click **Admin** at the bottom left.

![Accessing the Admin section of your Google Analytics account](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/9dcc39dd-da6f-4c38-b1c3-ee79d33f39d5/2022/07/13/6630d42c-fa2a-4ff3-9a96-364c8b5962a4/bca8b1f5-33d9-4155-9efd-159e18f5d74d.png)

1. Click **+ Create Property**.
2. Enter a property name.
3. Choose your reporting time zone and currency from the drop-down menus.
4. Click **Next**.
5. Select your type of business from the **Industry category** drop-down.
6. Select your business size.
7. Choose the information you want to track under **How do you intend to use Google Analytics with your business?**.

![Selecting your intended uses for your property in Google Analytics.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/9dcc39dd-da6f-4c38-b1c3-ee79d33f39d5/2022/07/13/f000266e-e8ce-4b4e-8651-1dea450b835d/0112b10d-a5c1-477a-95ee-d5e44aae5066.png)

1. Click **Create**.
2. Choose **Web** under **Choose a platform**.
3. Add your website URL and a stream name under **Set up your web stream**.
4. Click the Settings icon.
5. Click **Show advanced settings** under **Page views**.
6. Deselect the **Page changes based on browser history events** checkbox.

![Deselecting tracking changes based on browser history events.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/9dcc39dd-da6f-4c38-b1c3-ee79d33f39d5/2022/07/13/124e8201-f4d3-448e-8481-814be5d247d9/84c10811-770d-4851-87ac-82ea349c77d3.png)

1. Disable the **Site search** toggle.
2. Click **Save**.
3. Click **Create stream**.
4. Copy your **Measurement ID**.

![Copying your measurement ID in Google Analytics](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/9dcc39dd-da6f-4c38-b1c3-ee79d33f39d5/2022/07/13/37849e27-55e0-4e42-870c-700bed0e8cd7/4d9a5fb3-b04b-43e9-95be-363a414d6652.png)

---

## Step 2 | Add your Google Analytics Measurement ID to your Wix site

Add your Google Analytics measurement ID to Marketing Integrations in your dashboard to connect Google Analytics to your site.

### To add your measurement ID:

1. [Go to Marketing Integrations](https://www.wix.com/my-account/site-selector/?siteType=HtmlWeb&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fmarketing-integration%3FreferralInfo%3Dmarketing%5Fintegrations%5Farticle%5Flink&title=Marketing%20Integrations&buttonText=Add%20Integrations) in your site's dashboard.
2. Click **Connect** under **Google Tag**.  
**Note:** Google Tag unifies Google Analytics, Google Ads and other Google products. Learn more about [Google Tag Unification](https://support.wix.com/en/article/google-tag-unification).

![Connecting Google Tag in your site's dashboard](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/a1c473d0-e600-4b63-ae67-997d73da1139/2024/11/11/3a88c252-d760-41b0-be79-5eb20b8a9f9a/a9009d7d-b7c7-4c17-8a17-8c10c09045b9.png)

1. Click **Add Google Tag ID**.
2. Paste your Google Analytics Measurement ID in the pop-up.  
**Note:** Make sure that there are no extra spaces before the code.

![Adding your measurement ID to your site.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/a1c473d0-e600-4b63-ae67-997d73da1139/2024/11/11/b1323a7f-c50f-4bc8-a31f-c62d947e1f21/d48ca985-c097-4a53-ae09-de3ca5ee1515.png)

1. (Optional) Select the IP Anonymization checkbox if you want to hide your site visitors’ IP addresses from Google.
2. Click **Save**.

---

> **Tip:** It may take some time before you see statistics in your Google Analytics account.
