How to set up Google Tag Manager on a Wix site

Author:

Setting up Google Tag Manager (GTM) on a Wix website involves a few straightforward steps. Wix provides an easy way to add GTM to your website, but it does require some familiarity with GTM’s basic setup. Here’s how to do it:

Step 1: Create a Google Tag Manager Account (If You Haven’t Already)

If you don’t already have a Google Tag Manager account, follow these steps:

  1. Go to Google Tag Manager.
  2. Click on Create Account.
  3. Enter your account name and country.
  4. Under “Container Setup,” choose Web as the platform and give your container a name (typically your website’s name).
  5. Click Create and agree to the terms of service.
  6. After setting up, you’ll be provided with a GTM container ID, which looks like GTM-XXXXXX. You’ll need this ID for the next steps.

Step 2: Add the Google Tag Manager Code to Your Wix Site

  1. Log into Your Wix Account:
    • Open Wix.com, and log in to your Wix account.
  2. Open Your Site in the Wix Editor:
    • Go to My Sites and select the site you want to install GTM on.
    • Click Edit Site to open the Wix Editor.
  3. Go to Tracking & Analytics:
    • In the left sidebar of the Wix Editor, click on Settings.
    • From the drop-down menu, select Tracking & Analytics.
  4. Add a New Custom Code:
    • Click + New Tool and choose Custom.
    • Select Custom HTML.
  5. Insert the Google Tag Manager Code:
    • In the Custom HTML box, paste the GTM container code that you copied from Google Tag Manager.
      • The code will look like this:
        html
        <!-- Google Tag Manager -->
        <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
        })(window,document,'script','dataLayer','GTM-XXXXXX');
        </script>
        <!-- End Google Tag Manager -->
      • Be sure to replace GTM-XXXXXX with your actual GTM container ID.
  6. Add the Noscript Code:
    • Below the previous code, you’ll also need to add the noscript tag. This tag ensures that GTM still functions for users who have JavaScript disabled.
      • The noscript code looks like this:
        html
        <!-- Google Tag Manager (noscript) -->
        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
        height="0" width="0" style="display:none;visibility:hidden">
        </iframe></noscript>
        <!-- End Google Tag Manager (noscript) -->
      • Paste this code directly into the Body – End section in the Wix settings.
      • This ensures the noscript code is added to the correct location on your website.
  7. Save the Changes:
    • After adding the codes, click Apply to save the changes.
    • Close the Tracking & Analytics settings.

Step 3: Verify GTM Installation on Your Wix Site

  1. Use GTM Preview Mode:
    • Go to Google Tag Manager and click Preview.
    • Enter your website’s URL in the preview mode dialog box and click Start.
    • A new tab will open with your Wix site, and you’ll see the GTM debugging console at the bottom of the screen, showing which tags are fired.
  2. Verify Tags:
    • Interact with your site (click on buttons, visit different pages) to verify that the tags configured in GTM fire correctly.
    • You can also check Google Analytics or other connected platforms (if you’ve set them up) to see if data is being received.
  3. Test with Google Tag Assistant (Optional):
    • You can install the Google Tag Assistant browser extension to check if Google Tag Manager is properly installed on your site.
    • The extension will show you if GTM is working and if the tags are firing as expected.

Step 4: Set Up Tags in Google Tag Manager

Once Google Tag Manager is properly installed on your Wix site, you can start adding and configuring tags for tracking purposes. For example, you can add:

  • Google Analytics Tags: Track page views, events, etc.
  • Google Ads Conversion Tracking: Track conversions and other interactions.
  • Facebook Pixel Tags: Track Facebook ad conversions.
  • Custom HTML Tags: Add scripts from other marketing platforms.

Example: Add Google Analytics Tag

  1. In Google Tag Manager, click on Tags and then New.
  2. Choose Google Analytics: Universal Analytics.
  3. Set the tag type to Page View.
  4. Enter your Google Analytics Tracking ID.
  5. Under Triggering, select All Pages (or set a more specific trigger if needed).
  6. Save the tag, and publish the container.

Step 5: Publish Changes in GTM

Once you have your tags set up in GTM:

  1. Click Submit in Google Tag Manager.
  2. Add a version description (e.g., “Initial GTM Setup for Wix”).
  3. Click Publish to make the tags live on your Wix site.

Step 6: Monitor Performance

After setting up GTM on your Wix site, it’s essential to monitor the performance of your tags and ensure everything is working as expected:

  1. Use Google Analytics to monitor traffic and behavior.
  2. Check GTM Preview Mode and Google Tag Assistant for troubleshooting.

Conclusion

Setting up Google Tag Manager on a Wix site is a simple process that allows you to manage all your marketing and analytics tags in one place. By following the above steps, you’ll be able to integrate GTM into your Wix site, set up tags like Google Analytics, and track important user interactions on your site efficiently. Once GTM is installed and configured, you can easily update and manage tracking codes without the need to modify the code of your site directly.