Overview
If your site already uses Google Tag Manager, you can install the Sona tracking script through it instead of editing your site's HTML directly. This guide walks you through creating a Custom HTML tag for your Sona pixel and firing it on every page. Ad blockers can interfere with scripts loaded through GTM, so for the most reliable tracking we recommend installing directly in your site's HTML where possible.
When to use this
Use this guide if:
You prefer not to modify the HTML of your site directly.
Your website is already set up with Google Tag Manager.
Before you begin, make sure you have:
A GTM account: a Google Tag Manager account with access to the container for your website.
Your Sona script: your unique Sona tracking script, available on the Tracking Pixel page.
Installing Sona with Google Tag Manager
Work through these steps to add the Sona script as a Custom HTML tag:
Open Google Tag Manager. Log in to your GTM account and select the container for the site where you want to install the Sona script.
Create a new tag. In the left-hand menu, click Tags, then click New, and enter a name like Sona Tracking Pixel.
Configure the tag. Click the Tag Configuration area (the pencil icon).
Choose the tag type. In the Choose tag type search box, type html and select Custom HTML.
Add your Sona script. Copy your Sona tracking script from the Tracking Pixel page and paste it into the HTML field.
Set the trigger. Click Triggering, then select All Pages to fire the tag on every page.
Save the tag. Click Save. You will see the tag added to your tag list.
Submit your changes. Click Submit in the top right to publish.
Best practices
Custom HTML tags: GTM's flexibility lets you install third-party scripts like Sona's pixel without needing developer support.
Page-level tracking: setting the trigger to All Pages ensures full site tracking coverage.
Ad blocker awareness: some users may not be tracked if they use privacy tools that block GTM.
FAQs
Is installing through GTM as reliable as direct HTML?
Is installing through GTM as reliable as direct HTML?
Not quite. Scripts loaded through Google Tag Manager can be blocked by ad blockers and privacy tools, which means some visitors will not be tracked. Direct installation in your site's HTML is more reliable, so use GTM when editing the HTML directly is not practical.
How do I load Sona on only specific pages?
How do I load Sona on only specific pages?
Instead of the All Pages trigger, create a page-based trigger that targets specific URLs. See the Google Tag Manager Trigger Configuration article for the exact steps to fire the Sona tag on selected pages only.
Where do I find my Sona tracking script?
Where do I find my Sona tracking script?
Your unique script is on the Tracking Pixel page in Sona. Copy it from there and paste it into the HTML field of your Custom HTML tag in GTM.






