Skip to main content

Install Sona Tracking Script for Documentation through Google Tag Manager

In this guide, you'll learn how to easily integrate the Sona tracking script into your documentation using Google Tag Manager (GTM) for seamless deployment and management. GTM allows you to add and update the Sona tracking script without modifying your site’s code, providing a more flexible and efficient implementation. With this setup, you can enable key Sona features, track engagement, and enhance your documentation experience effortlessly.

Step 1: Add a new tag and name it.

Add gtag

Step 2: Click Tag Configuration and select Custom HTML

Gtag configuration

Step 3: Paste the Sona tracking script.

Custom HTML pasting JS tracking

Step 4: Select a trigger to make the script work. Start by clicking the Triggering located below Tag Configuration

Triggering pop up

Step 5: Select a trigger based on your preference.

Select Trigger

You can also create a custom trigger by clicking the + icon on the top right side.

Custom trigger option

Step 6: Click Add to save selected triggers.

Save Gtag configuration

Step 7: Click Save to keep tag configurations.

Zoomed in zoom button

You can now add the Google Tag Manager script to your website, and it will track users through the Sona tracking script as well. ​