Install the Tracking Script

Before you can display campaigns or collect visitor data, you must install the Tango.ad tracking script on your website.
The tracking script enables Tango.ad to:
- Track visitor activity
- Display campaigns and popups
- Measure conversions
- Collect analytics
- Personalize visitor experiences in real time
Important: Campaigns will not work until the tracking script has been successfully installed.
Step 1: Open Your Workspace
- Sign in to your Tango.ad account.
- From the left navigation menu, click Customers.
- Select the workspace (customer) where you want to install the tracking script.
The Overview page will open and display the setup instructions.
Step 2: Copy the Tracking Script
On the Overview page, locate the Install tracking snippet section.
- Find your unique tracking script.
- Click the Copy icon to copy the script to your clipboard.
Each workspace has its own unique tracking script.
Step 3: Add the Tracking Script to Your Website
Paste the copied tracking script into the <head> section of every page on your website, before the closing </head> tag.
Tracking Script
<script>
!function(e,r,t,o,p){
e.PowerPopObject=p,
e[p]=e[p]||function(){
(e[p].q=e[p].q||[]).push(arguments)
};
var a=r.createElement(t);
a.async=1;
a.src=o;
var n=r.getElementsByTagName(t)[0];
n.parentNode.insertBefore(a,n)
}(window,document,"script","https://sc.powerpop.ai/loader/a60d97f5-d701-4bb1-bc7e-4c263c1f3957","powerPop")
</script>
Example Placement
Insert the tracking script inside your website's <head> section.
<head>
<meta charset="UTF-8">
<title>My Website</title>
<!-- Tango.ad Tracking Script -->
<script>
!function(e,r,t,o,p){
e.PowerPopObject=p,
e[p]=e[p]||function(){
(e[p].q=e[p].q||[]).push(arguments)
};
var a=r.createElement(t);
a.async=1;
a.src=o;
var n=r.getElementsByTagName(t)[0];
n.parentNode.insertBefore(a,n)
}(window,document,"script","https://sc.powerpop.ai/loader/a60d97f5-d701-4bb1-bc7e-4c263c1f3957","powerPop")
</script>
</head>
Important: The tracking script must be placed inside the
<head>section of your website. Do not place it in the<body>section, as this may prevent Tango.ad from tracking visitors and displaying campaigns correctly.
Step 4 (Optional): Connect an Event Data Source
To enrich your analytics and visitor data, you can connect an event or ecommerce platform.
- Locate the Choose where your event or ecommerce data comes from section.
- Open the Platform dropdown.
- Select your preferred data source (for example, GA4 events).
This step is optional but recommended if you want to use additional event data for advanced targeting and reporting.
Step 5: Verify the Installation
After publishing the tracking script, Tango.ad will automatically verify whether the script has been detected.
If the installation is successful, your workspace will begin collecting visitor engagement data, allowing you to create and publish campaigns.
Troubleshooting
Connection Wasn't Successful
If you see the following message:
Connection wasn't successful. Please check that you've inserted our script into the header section of your page.
Verify that:
- The tracking script is installed inside the
<head>section. - You copied the correct tracking script from your Tango.ad workspace.
- Your website changes have been published.
- You're checking the correct website or domain.
- There are no errors preventing the script from loading.
No Visitor Data Appears
If your workspace isn't receiving visitor data:
- Confirm that the tracking script is present on your website.
- Visit your website after installing the script to generate activity.
- Ensure you're using the correct workspace and domain.
- Check whether browser extensions or security settings are blocking the script.
Need Help?
If you're still unable to connect your website after following these steps, contact the Tango.ad support team for assistance.
Next Steps
Once your tracking script has been successfully installed, you're ready to continue setting up Tango.ad:
- Create your first campaign.
- Customize its appearance using the Design Editor.
- Configure campaign behavior in the Workflow Editor.
- Publish your campaign.
- Monitor visitor engagement and campaign performance in the Analytics dashboard.