# Setting Up Google Tag Manager with Wix

Source: https://support.wix.com/en/article/setting-up-google-tag-manager-with-wix (updated 2026-10-05)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

> **Before you begin:** Working with Google Tag Manager (GTM) is an advanced feature that requires special knowledge and skills. If you have no prior experience implementing a tag management system, we recommend using [Google Analytics](https://support.wix.com/en/google-analytics) that handles all recommended Google events out of the box.

Implement a tag management system using Google Tag Manager to keep your tags and third-party code snippets updated and organized in one convenient location.

Wix ensures a pageview event is sent to the Google Tag Manager data layer every time a user visits a new page on your site. Follow the steps below to set up a Google Tag Manager tag to collect pageviews.

---

## Step 1 | Connect Google Tag Manager to your Wix site

To set up Google Tag Manager with Wix, first [follow the steps in this article to connect your site to Google Tag Manager](https://support.wix.com/en/article/connecting-your-google-tag-manager-account-to-your-wix-site). Connect in Marketing Integrations in your site's dashboard to start tracking visitor events on your site.

> **Note:** Do not use custom code to connect Google Tag Manager.

Once you have connected Google Tag Manager to your Wix site, proceed to Step 2 of this article.

---

## Step 2 | Set up a Tag in Google Tag Manager

The next step is to set up a Google Tag in Google Tag Manager. This includes adding a configuration tag and then adding a trigger to that configuration tag.

> **Tip:** Follow [this tutorial to learn how to set up Google Analytics and send page views](https://support.google.com/tagmanager/answer/14842164?sjid=15113026945209550936-EU).

## a | Add a configuration tag

1. From the [Google Tag Manager account page](https://support.google.com/tagmanager/answer/14842164?sjid=15113026945209550936-EU), click **Tags** from the left hand side menu.
2. Click **New.**
3. Enter a name for the tag (e.g. GA4 Config).
4. Click **Choose a tag type to begin setup** under **Tag Configuration**.
5. Select **Google Tag**.
6. Add your Tag ID. We recommend creating a constant variable that contains the tag ID.
7. Click **Configuration Settings**.
8. Under **Configuration Parameter** click **Add Parameter**.
9. Enter “send\_page\_view” into the **Configuration Parameter** field and "false" into the **Value** field.

![A screenshot of Google Analytics adding a new tag configuration.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/71d20af0-560e-44a5-bb38-bf3f513b58fa/2024/07/24/b55523ab-adde-4711-8869-89e937cdbcbc/b0627e49-bf4f-4d70-851d-9dfac0b79959.jpg)

## b | Add a trigger to the configuration tag

1. In the **Triggering** section click "Initialization - All Pages." [Learn more about consent](https://support.wix.com/en/article/enabling-consent-mode-in-google-tag-manager).
2. Click **Save**.

![A screenshot of Google Analytics adding a trigger to the tag.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/71d20af0-560e-44a5-bb38-bf3f513b58fa/2024/07/24/e9ebb719-58e4-468a-b387-b8947513b19b/ffa3e42d-23c6-4cc7-a04f-d64c207ae11d.jpg)

---

## Step 3 | Configure Page View in Google Tag Manager

The final step is configuring Page View, which includes creating a Page View tag and then adding the configuration tag. The final step is setting up Page View as a trigger.

## a | Create a Page View tag and add the configuration tag

1. [Set up a Page view tag](https://developers.google.com/analytics/devguides/collection/ga4/views?client%5Ftype=gtm#page%5Fview%5Fevent).
2. Click **Tags** from the left hand side menu.
3. Click **New**.
4. Enter a name for the tag (e.g. Page View).
5. Click **Choose a tag type** to begin setup under **Tag Configuration**. (Google Analytics >> Google Analytics: GA4 event)
6. Add a Measurement ID. We recommend creating a [constant](https://support.google.com/tagmanager/answer/7683362?hl=en&ref%5Ftopic=9125128&sjid=17855247187236799596-EU#constant) variable that contains the tag ID.
7. Add the Event Name “page\_view”.

## b | Set up Page View trigger

1. [Set up a Custom event trigger](https://support.google.com/tagmanager/answer/7679219?hl=en).
2. Enter "Pageview" as the name for your custom trigger.  
**Note:** Never use the built in “All Pages” trigger, since it is not compatible with Single Page Applications.
3. Click **Save**.
4. Click **Tags** from the left hand side menu.
5. Click the **Page View** tag.
6. In the **Triggering** section click "Pageview - Custom Event".
7. Click **Save**.
8. Click **Submit**.

![A screenshot of setting up Page View as a trigger in Google Tag Manager.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/71d20af0-560e-44a5-bb38-bf3f513b58fa/2024/07/24/4280bb0b-933f-4501-a9d4-06320eab6bd0/c2330c1f-76f8-4e92-a113-c57ce136c1e4.jpg)

---

## Important information about using Google Tag Manager

> **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.

* This feature is only available for sites with a [connected domain](https://support.wix.com/en/article/connecting-a-domain-you-own-to-your-wix-site).
* It is not possible to track events for business solutions pages (e.g. Wix Restaurants, Wix Bookings, etc.)
* If you've previously set up a preset tracking code using Google Tag Manager (e.g. a Facebook pixel), you must disable the tracking code in your Wix account. Running the same code in Google Tag Manager and on your Wix site may cause the code to misreport or malfunction.
* Wix is a Single page application. That means the tracking setup with Google Tag Manager is different than other platforms you may be familiar with.
* Wix does not provide support for technical issues with third-party code snippets. If you have an issue with your code snippet, please contact the provider directly.
