If you need to install a tracking script on all pages of your website using Google Tag Manager (GTM), follow the steps below.
Step 1: Visit google.com and open the container for your website.
Step 2: In the left-hand menu, click Tags, then click New.
Step 3: Click Tag Configuration. Select Custom HTML as the tag type.
Step 4: Copy and paste the entire tracking script into the provided HTML field.
Step 5: Click Triggering. Select All Pages (under the built-in Page View triggers).
Step 6: Optional: Support Document Write
If your script requires write, check the box labeled Support document.write (use with caution).
Step 7: Give your tag a descriptive name, such as “Tracking Script – All Pages”, and click Save.
Step 8: Click Preview to test your changes in debug mode. Visit your website to ensure the tag fires correctly.
Step 9: Once you’ve confirmed the tag works as expected, click Submit and then Publish to make it live.
