
March 1, 2024
How To Install Google Tag Manager on WIX website
Updated: March 1st, 2024
In the past, I noticed threads on forums, Reddit, and elsewhere where people were trying to find the answer: how to install Google Tag Manager on WIX. No luck. Even though WIX supported Custom HTML widgets, they did not work with the GTM code inside.
Luckily, those dark times are over because WIX now offers built-in support for GTM. Hooray! Today, I’ll show you how to do that.

Quick Context
As I have mentioned before, WIX’s Custom HTML widgets did not function properly with the GTM container code in them. And this approach still doesn’t work. The only way you could enable Google Analytics Tracking was by going to a dedicated Analytics section and adding GA tracking code there.
But what if I wanted to track particular clicks or other interactions happening on a website? Usually, GTM was the tool that could do that. Well, too bad because WIX did not care much about it. Therefore, GTM fans (and WIX users) were crying in the corner (or switching to another website builder).
Thankfully, that time is over, and GTM can be installed in no time.
Video tutorial (2023)
If you prefer video content, you might like this tutorial.
Install Google Tag Manager on WIX
First of all, this feature is only available for paid plans of WIX. If you’re still using the free plan, sorry, there’s no workaround. You’ll either need to upgrade or stay without tracking data. If you’re on any premium plan, continue reading.
Login to your WIX account and choose the website where you wish to install GTM, click Manage Site.
Then, in the left sidebar, go to Marketing & SEO > Marketing Integrations.
You’ll see a list of applications that can be integrated with the Wix website. Find the widget showing Google Tag Manager, and click Connect.
Enter the ID of your GTM container (e.g., GTM-XXXXXXX) and click Apply. Google Tag Manager container code snippet will be added to all pages of a WIX website. You can find the GTM container ID in the top bar of the Google Tag Manager account:
Also, it’s hard to miss, but I’d like to note that GTM wasn’t the only addition to WIX’s Marketing Integrations Stack. In the screenshot above, you can also see Facebook Pixel, Yandex Metrica, Custom Script, etc.

Test Google Tag Manager on WIX
That’s it!
Let’s test whether the Google Tag Manager container was added correctly. Enable Preview and Debug mode (by hitting the Preview button in GTM), enter the website you want to debug, and click Connect.
Then a new tab/window will open with your website and Tag Assistant will be displayed as connected.
If that happened, GTM was implemented successfully. If preview and debug mode did not appear, read this guide, where I mention the most common reasons and how you can fix them.
Track Pageviews on WIX
The next step you should do is track page view events. However, not everything is simple. WIX websites are built as single-page applications, meaning regular pageview event tracking will not work. Instead, you need to follow this guide.
OK, now what?
Start creating triggers and tags (tracking codes) and publish them on a website. Here are several ideas about what you can do next.
- Track clicks
- Track forms
- Track videos
- 30+ ready-made Google Tag Manager templates container templates
- Before you rush into tagging, read this blog post about common GTM mistakes, which are very popular among those who are just starting
How to install Google Tag Manager on WIX: Summary
In a nutshell, here are the steps you need to complete:
- Go to your site’s Marketing Integrations tab
- Go to Google Tag Manager and click Go For It
- At the top right, click Connect Google Tag Manager
- Enter your Google Tag Manager container ID
- Click Save
For a more visualized step-by-step process, feel free to revisit the instructions listed in this guide.
I’m glad that WIX developers have implemented native support for GTM. From now on, you can easily install Google Tag Manager on WIX websites by adding a container ID in the Marketing Integrations section of the website’s management. The only requirement here is to upgrade that site to a paid plan.

32 COMMENTS
Good article Julius. One question - I have implemented GA tracking code also to my Wix site. Can I leave it untouched while I use GTM for other other pageview & click events? I know I can also migrate GA tag to GTM, but want to do that later - really don't want to mess up the analytics tracking
Hi, you can have some GA events/tracking hardcoded on a WIX site while tracking other interactions with GTM + GA. But it is highly recommended to eventually migrate all to GTM. Just try to avoid duplicate events (when the same event tracking is both hardcoded on the site and is implemented via GTM).
Sure, thank you so much Julius
Hi there,
do I need to have both GA and GTM Connected to my WIX Website, or can i remove the GA snippet once GTM is there?
Thanks,
Jana
Hey, no. If you connect GTM with WIX, then you should install Google Analytics via GTM. After that is complete, remove the directly added GA snippet from the WIX settings.
That's the first time I'm installing GTM on Wix (not a fan). Seems like I have exactly the same problem as KAYGEE. Google Analytics tracking works fine out of the box. However, GTM (even if you add the GTM code manually via "Custom") doesn't want to work properly. If you go to the page directly, the pageview is recorded properly, but if you click to another page via a link, the code is not recording a new page. It looks like the page is not properly refreshed, but instead a new iframe is loaded... though the URL and Page Title is updated, the GTM doesn't recognize it as a new page load.... any ideas? I'm using Tag Assistant, GA Debug with JS console and Real-Time reports to test.
Hi Ivan
That's exactly it. I'll keep looking for a solution and will let you know if I find one. Please let me know if you find anything as well.
Fixed, kind of.... I followed the instructions on this page - https://support.wix.com/en/article/setting-up-google-analytics-using-google-tag-manager and it seemed to work. So you can forget about implementing GA Pageview tracking in GTM as you normally would for other websites.
My only concern now is that I'm getting "Multiple installations of Google Tag Manager detected" message in the Google Tag Assistant. So I'm not sure if this will have any impact on the data? Julius do you get the same message as well? Thanks
Yes, normal pageview tracking will be impossible because only the first page loads properly. All other pages require Custom trigger.
Now, regarding Multiple installations, could you share a link to that website? If that's very privat, you can send me an email to julius [at] analyticsmania.com.
Yeah I did use that solution and got that same multiple installations message. That initital Pageview for one user end up being recorded multiple times because everytime a user goes to a new page it records the initial one instead of the new one.
To track pageviews after that initial one loads, I followed their documentation but with a bit of a twist. I've decided to track Wix pageviews with Google Analytics event tracking.
Trigger settings
Trigger type: Custom event
Trigger name: gtm.linkClick
Tag settings
Tag type: Google Analytics
Track type: Event
Category: Wix Pageview
Action: Pageview
Label: {{Wix var - pageurl}} (note: this the the data layer variable that holds the url)
So any pageviews after the 1st one loads i look at under event report rather than page view reports.
For now that kinda helps
Hi Julius,
Thanks for the post. I'm having troubles installing the GST to my wix account. In my google ads account i find a global site tag ID starting with 'AW' followed by 9 numbers. Wix doesnt recognize this type of ID.... Do you have any idea how to solve this? Thanks for your help
Try entering only numbers from that ID, leave "AW-" out.
Argh...ok solved! I was trying to connect Google Tag Manager using the Google Ads Remarketing Tag... :-s
Hi Julius, Thanks for the post.i have one question , can i implement ecommerce tracking code in wix ? or can i build datalyer there ??
many thanks in advance
Theoretically, yes. You can have a dataLayer on any website if you have access to it. However, I'm not that well-familiar with WIX'es capabilities, therefore, I cannot give you precise advice.
All in all, you'll need to have a decent JavaScript knowledge to scrape the website's document object model (DOM) and push it to the Data Layer via GTM. I don't think that there is a solution to push data from the WIX'es backend to the data layer.
Hi Julius
I have tried several ways of tracking embedded YouTube videos on my Wix blog website - it didn't work for me. The events even don't fire.
These are the tutorials I used:
https://www.lovesdata.com/blog/tracking-youtube
https://www.youtube.com/watch?v=-_sbCHBVjzA
Do you have any idea what can be done about it?
Thank you so much!
Hi, Try this https://www.analyticsmania.com/post/youtube-tracking-google-tag-manager-solved/
Hi Julius,
Thanks for all this info! Do you know if it is possible to link google search keywords to a form submission? For example, if someone searches for "fitness equipment in NYC" and ends up on our site and fills out our form, can we link the person/form submission to the search terms?
Hey, sorry for late reply. No, that is not possible.
Hey, I have followed steps above where I have managed to get google analytics to fire when I click on different pages of my wix site, but am also now getting google tag assistant showing multiple installations of Google tag manager now too. Did anyone figure out a fix for this problem, or a way to get GA to fire via GTM for all the wix pages as people click through the site without getting multiple GTM installations show? Does this effect the data? Also, this is all new to me as of today, can someone explain how to add google remarketing tag to wix via Google tag manager, or how to go about this?
Hi, don't worry about that warning. It's a false positive on websites like WIX. More on this: https://www.analyticsmania.com/post/multiple-installations-of-google-tag-manager-detected/
Hey there. I followed the steps in installing GTM to Wix but when trying to verify my site on Google Search Console with GTM, it says this, "We could not find a Google Tag Manager container ID on the home page of your site."
When using "marketing integrations" does this not add the code to all pages?
To all pages, but maybe wix is doing something non-standard in this case, I am not sure.
I was able to test it with the preview and debug. I only have one thing in GTM to track and it fired when I tested it. So it seems like it is working in that aspect. I added the Google Search Console HTML code to the header and was able to verify it that way but still concerning that it wasn't able to verify it by finding the GTM in the header.
Search console is not looking for GTM in the header. It is checking for another thing. And wix is probably not doing that.
head*
Hi Julius
Thanks for the article. I'm finding I have to delete and reset my GTM integration on Wix every time I enter GTM preview mode and/or publish a new version. Otherwise real time results in Google Analytics stop appearing.
Have you found this? Any advice... or is that just Wix being Wix?
Never seen this before. Mostly, Wix being Wix. Or maybe you have some custom code in your container that does something (although, I doubt it)
Hi Julius
I have implemented GTM on my wix site but am I able to set up enhanced e-commerce to track transaction and revenue in Google analytics?
Thanks for your help!
Wayne
Julius, thanks so much for clarifying GA vs. GTM and how best to install GTM on my Wix site. I was "gifted" one year's use of "Visitor Analytics" (VA) app when I upgraded to Wix Business Unlimited. Any thoughts on whether the 1-year VA is better than sticking with GTM and built in (free) Wix analytics? Just getting rolling and keeping expenses down.
Also, if you have pointed research on this topic, glad to read. Thanks!
I am not the right person to ask about WIX analytics.
Hi Julius ! Thanks for the video !
As now is not possible to deactivate the "automatic page view" for the GA4 configuration (as now the option is to install the Google Tag).
Unfortunately with this configuration I'm having 2 page views every time a user loads the first page or reloads the page.
Thanks in advance,
Alberto