How to Install a Tracking Script in Google Tag Manager to Fire on All Pages

How to Install a Tracking Script in Google Tag Manager to Fire on All Pages

How to Install a Tracking Script in Google Tag Manager to Fire on All Pages

If you need to install a tracking script (such as Google Ads, Meta Pixel, LinkedIn Insight Tag, or any custom code) on all pages of your website using Google Tag Manager (GTM), follow the steps below.

Step-by-Step Instructions

  1. Log into Google Tag Manager
    Visit tagmanager.google.com and open the container for your website.

  2. Create a New Tag
    In the left-hand menu, click Tags, then click New.

  3. Configure the Tag

    • Click Tag Configuration.

    • Select Custom HTML as the tag type.

  4. Paste Your Tracking Script
    Copy and paste the entire tracking script into the provided HTML field.

  5. Add a Trigger for All Pages

    • Click Triggering.

    • Select All Pages (under the built-in Page View triggers).

  6. Optional: Support Document Write
    If your script requires document.write, check the box labeled Support document.write (use with caution).

  7. Save the Tag
    Give your tag a descriptive name, such as "Tracking Script – All Pages", and click Save.

  8. Preview the Tag
    Click Preview to test your changes in debug mode. Visit your website to ensure the tag fires correctly.

  9. Publish the Tag
    Once you've confirmed the tag works as expected, click Submit and then Publish to make it live.

Need Help?

If you're not sure which type of script to use or how to verify it's working, contact our support team at support@visualvisitor.com for assistance.

    • Related Articles

    • Where to Find Your Installation Script

      What is your tracking script? The installation script is a critical component for your website to enhance visitor identification and analytics capabilities. Embedded into the backend of your site, this code works silently yet efficiently, operating ...
    • Breaking Down Parameters for Google Campaign UTM

      Several years ago, Google began encrypting keyword information, making it challenging for everyone to fully understand their keyword data and performance. To address this, we’ve developed a solution specifically for our clients that helps them gain ...
    • Adding Visual Visitor to your Webflow Site

      To add custom scripts to your Webflow site, you have options depending on whether you want the script to apply site-wide, or to specific pages. Here's how you can do it: 1. Adding Site-Wide Scripts: If you want a Visual Visitor to run across your ...
    • How do I track Keywords from Google

      Google started encrypting keyword information several years ago. This impacts EVERYONE trying to understand their keyword data and efforts. We have designed a workaround for our clients, to help them better understand their Adwords keyword data. If ...
    • Installing Visual Visitor on Square Space

      Step 1: Go to your Account Dashboard on Square Space. Step 2: Select "Settings". Step 3: From settings go to "Developer Tools" under the Website tab. Step 4: Select "Code Injection." Step 5: Paste your Visual Visitor script into either the header or ...