• Courses
    • Courses
    • Course bundles
  • Blog
  • Services
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • About
    • About
    • Contact
  • Login
  • Courses
    • Courses
    • Course bundles
  • Blog
  • Services
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • About
    • About
    • Contact
  • Login

September 4, 2020

How To Install Google Tag Manager on WIX website

Updated: September 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.

Subscribe and Get the Ebook - Real Book Img - GTM for Beginners

Video tutorial

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.

GTM on WIX - 1st step

Then, in the left sidebar, go to Tracking & Analytics.

GTM on WIX - 2nd step

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

GTM on WIX - 3rd step

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:

GTM WIX installation

 

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.

Subscribe and Get the Ebook - Real Book Img - GTM for Beginners

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.

preview and debug console

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.

Google Tag Manager Ebook Bundle

 

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.

If you are looking for a more in-depth WIX guide in general, you can take a look at this guide.

 

OK, now what?

Start creating triggers, tags (tracking codes) and publish them on a website. Here are several ideas about what you can do next.

For GTM beginners:

  • 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

 

For experienced Google Tag Manager users:

  • Track when elements appear on the screen (article by Simo Ahava)
  • Use one of these Custom JavaScript codes which should enrich your data

 

How to add Google Tag Manager code to 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 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.

Subscribe and Get the Ebook - Real Book Img - GTM for Beginners
Julius Fedorovicius
In Google Tag Manager Tips
31 COMMENTS
Prashant
  • Apr 1 2018
  • Reply

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

    Julius Fed
    • Apr 3 2018
    • Reply

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

      Prashant
      • Apr 3 2018
      • Reply

      Sure, thank you so much Julius

Jana
  • May 29 2018
  • Reply

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

    Julius Fed
    • Jun 1 2018
    • Reply

    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.

Ivan
  • Jun 20 2018
  • Reply

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.

    Kaygee
    • Jun 21 2018
    • Reply

    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.

Ivan
  • Jun 20 2018
  • Reply

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

    Julius Fed (Fedorovicius)
    • Jun 21 2018
    • Reply

    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.

    Kaygee
    • Jun 22 2018
    • Reply

    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

M
  • Nov 17 2018
  • Reply

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

    Julius Fedorovicius
    • Nov 17 2018
    • Reply

    Try entering only numbers from that ID, leave "AW-" out.

    M
    • Nov 17 2018
    • Reply

    Argh...ok solved! I was trying to connect Google Tag Manager using the Google Ads Remarketing Tag... :-s

momo
  • Nov 22 2018
  • Reply

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

    Julius Fedorovicius
    • Nov 24 2018
    • Reply

    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.

Itay
  • Apr 11 2019
  • Reply

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!

    Julius Fedorovicius
    • Apr 11 2019
    • Reply

    Hi, Try this https://www.analyticsmania.com/post/youtube-tracking-google-tag-manager-solved/

Jenny Ayres
  • Jul 5 2019
  • Reply

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?

    Julius Fedorovicius
    • Aug 18 2019
    • Reply

    Hey, sorry for late reply. No, that is not possible.

Talie
  • Jun 1 2020
  • Reply

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?

    Julius Fedorovicius
    • Jun 1 2020
    • Reply

    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/

Hadison Bates
  • Aug 20 2020
  • Reply

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?

    Julius
    • Aug 20 2020
    • Reply

    To all pages, but maybe wix is doing something non-standard in this case, I am not sure.

      Hadison Bates
      • Aug 20 2020
      • Reply

      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.

        Julius
        • Aug 20 2020
        • Reply

        Search console is not looking for GTM in the header. It is checking for another thing. And wix is probably not doing that.

Hadison Bates
  • Aug 20 2020
  • Reply

head*

Simon
  • Aug 31 2020
  • Reply

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?

    Julius
    • Aug 31 2020
    • Reply

    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)

Wayne Lieb
  • Nov 17 2020
  • Reply

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

Monica
  • Feb 6 2022
  • Reply

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!

    Julius Fedorovicius
    • Feb 21 2022
    • Reply

    I am not the right person to ask about WIX analytics.

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

 

Hi, I'm Julius Fedorovicius and I'm here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey. Read more
Analytics Mania
  • Google Tag Manager Courses
  • Google Tag Manager Recipes
  • Google Tag Manager Resources
  • Google Tag Manager Community
  • Login to courses
Follow Analytics Mania
  • Subscribe to newsletter
Recent Posts
  • Introduction to Google Tag Manager Server-side Tagging
  • 3 Ways to Pull Data from Data Layer with Google Tag Manager
  • Cannot See the Google Tag Manager Option in Google Ads Conversion?
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings