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
- Log into Google Tag Manager
- Visit tagmanager.google.com and open the container for your website.
- Create a New Tag
- In the left-hand menu, click Tags, then click New.
- Configure the Tag
- Click Tag Configuration.
- Select Custom HTML as the tag type.
- Paste Your Tracking Script
- Copy and paste the entire tracking script into the provided HTML field.
- Add a Trigger for All Pages
- Click Triggering.
- Select All Pages (under the built-in Page View triggers).
- Optional: Support Document Write
- If your script requires document.write, check the box labeled Support document.write (use with caution).
- Save the Tag
- Give your tag a descriptive name, such as "Tracking Script – All Pages", and click Save.
- Preview the Tag
- Click Preview to test your changes in debug mode. Visit your website to ensure the tag fires correctly.
- 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
help@franchiseninja.ai for assistance.
Related Articles
What Should I Do After Uploading the Tracking Script
What to do after you successfully load your script... Now that your script has been loaded successfully, there are still a few basic things that you can do to customize your Franchise Ninja account to better meet your needs. This article will walk ...
How To Install Franchise Ninja on GoDaddy Website Builder v8+
The latest GoDaddy Website Builder does not allow custom JavaScript to be added directly to the <head> or <body> of your website. You can only add custom code to sections of individual pages using their built-in HTML element. If you're using the ...
Google Display Network - How to create a custom audience
1. Log into Google Ads Go to Google Ads and sign in. 2. Open Audience Manager Click the Tools & Settings (wrench icon) in the top menu. Under Shared Library, select Audience Manager. 3. Create a Custom Segment (Audience) Inside Audience Manager, go ...
How To Install Franchise Ninja on Wix
From your Wix Dashboard, go to Settings. Scroll to the Advanced section and click Custom Code. Click the + Add Custom Code button in the top right. In the Code Snippet box, paste your Franchise Ninja script. Under Name, enter a recognizable name ...
How To Install Franchise Ninja on GoDaddy v6 or v7
You can add JavaScript and HTML code to your GoDaddy website to display custom page elements, such as third-party apps. Log in to your GoDaddy account. In your Products list, click Website Builder, and then click Manage next to the account you want ...