How To Install Google Tag Manager on WIX website

Updated: February 4th, 2020. I’m not going to dive into discussions about whether WIX is a good platform for creating a website, it has its pros and cons. For example, it enables people to easily create a website but at the same time, WIX is not the best tool in terms of SEO friendliness. Additionally, one of the most annoying things was that WIX did not support Google Tag Manager.

From time to time I noticed threads on forums, Reddit, and elsewhere where people were trying to find the answer. No luck. Even though WIX supported Custom HTML widgets, they did not work with the GTM code inside of it.

Luckily, those dark times are over because WIX recently released built-in support for GTM. Hooray! Today, I’ll show you how to easily install Google Tag Manager on the WIX website.

Quick Context

As I have mentioned before, WIX’es 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.

Yay, pageviews.

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.

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 Tracking & Analytics.

Finally, in the top right corner, click New Tool > Google Tag Manager.

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 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’es Analytics 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!

Now, let’s test whether the Google Tag Manager container was added correctly. Enable Preview and Debug mode (by hitting the Preview button in GTM), go to the website you’re working on (the public part) and refresh the page. A debug console window will appear at the bottom of your browser, showing detailed information about your tags, including their firing status and what data is being processed.

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. You can also install and use Google Tag Assistant, Chrome extension which checks Google’s tracking codes (including GTM) and reports if there are some errors.

Track Pageviews on WIX

The next step you should do is tracking pageviews. However, not everything is simple. WIX websites are built as single-page applications, meaning that a regular pageview tracking will not work. Instead, you need to follow this guide.

For the 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 added container ID in the Tracking and Analytics section of the website’s management. The only requirement here is to upgrade that site to a paid plan.

Got questions? Feel to ask in the comments section below.

Julius Fedorovicius

In Google Tag Manager Tips

21 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).

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.

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

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.

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

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

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, 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?