How to Install Google Tag Manager (GTM) in Webflow: A Step-by-Step Guide

What is Google Tag Manager (GTM) and Why Should You Use It?

Why must you use GTM?




Pre Requisites for how to install GTM in Webflow

Before you can install Google Tag Manager on your Webflow site, there are a few things you’ll need

  1. A Google Tag Manager Account
    If you don’t have a GTM account yet, you can easily create one for free by visiting Google Tag Manager. Once created, you’ll need to set up a container for your Webflow site, which will hold all the tags you want to implement.

  2. Access to Your Webflow Account
    Make sure you have access to the Webflow project where you want to install GTM. You’ll be adding code to your site’s custom code section.

  3. Basic Understanding of Tags and Triggers
    While no coding is required, having a basic understanding of tags (such as Google Analytics, conversion tracking, etc.) and how triggers work within GTM will help you make the most of this tool.

Once you have these prerequisites, you’re ready to begin the installation process. Don’t worry, we’ll guide you through each step to make it as easy as possible!

Do You Want Us to Manage and Scale Your Campaigns?

Step-by-Step Guide to Install GTM in Webflow

Step 1: Create a Google Tag Manager Account

  1. Go to the Google Tag Manager website and sign in with your Google account.
  2. Click Create Account and enter the required details:
    • Account Name: Choose a name that represents your website.
    • Container Name: Typically, this would be your website URL.
  3. Select Web as the platform.
  4. Once created, GTM will provide you with two snippets of code (one for the <head> and one for the <body>). Keep these handy — you’ll need them in the next steps.

Step 2: Add GTM Code to Webflow

  1. Log into your Webflow dashboard and open the project where you want to install GTM.
  2. Go to Project Settings > Custom Code.
  3. In the Head Code section, paste the first GTM code snippet (the one for the <head> tag).
  4. Scroll down to the Body Code section and paste the second GTM snippet (for the <body> tag).
  5. Save the changes.

Step 3: Publish Your Changes in Webflow

After adding the GTM code, you need to publish your website to make sure the changes take effect.

  1. Click the Publish button in your Webflow dashboard.
  2. Select the domain where the changes should go live.

Once published, GTM is now active on your Webflow site, and you can start adding and managing tags without touching the code again!

Step 4: Test and Verify GTM Installation

It’s important to verify that GTM has been installed correctly. Here’s how:

  1. Open your website in a new tab.
  2. Use Google Tag Assistant (a Chrome extension) to check if GTM is firing properly. Alternatively, you can use the Preview Mode in GTM to test whether the container is functioning as expected.
  3. If the GTM code isn’t working, revisit the steps to ensure you’ve placed the snippets in the correct sections of Webflow.

Do You Want Us to Manage and Scale Your Campaigns?

Troubleshooting GTM Installation Issues in Webflow

Even though installing GTM in Webflow is straightforward, issues can arise. Below are some common problems and solutions to help you troubleshoot:

GTM Code Isn’t Firing Properly

  • Check Code Placement: Make sure the GTM <head> and <body> snippets are correctly placed in Webflow’s Custom Code section. The <head> code goes in the Head Code section, while the <body> code goes in the Footer Code or immediately after the opening <body> tag.
  • Publish Changes: Always publish the changes in Webflow after adding or updating the GTM code. Unpublished changes won’t take effect.

GTM Preview Mode Not Working

  • Use Incognito Mode: If Preview Mode isn’t working, try using an incognito browser window to avoid conflicts with extensions or cache issues.
  • Clear Browser Cache: Sometimes old versions of your site may still be cached in your browser. Clear the cache to ensure that you’re seeing the latest version of your site with GTM installed.

Tags Not Firing Correctly

  • Check Triggers: Make sure the right triggers are attached to your tags in GTM. A tag without a trigger won’t fire.
  • Test in Preview Mode: Always use Preview Mode in GTM to test your tags before publishing them. This will show you exactly which tags are firing and when.

Webflow Site Not Loading Properly After Installing GTM

  • Check for Code Errors: If the Webflow site breaks or loads incorrectly after adding the GTM code, it’s possible the snippets were not pasted correctly. Double-check that the code is complete and placed in the correct sections.