Prerequisites
Access to Google Tag Manager
You need to have a Google Tag Manager account and access to the GTM container for the website where you want to add the HTML.
Google Tag Manager installed on your website
Copy the code below and paste it onto every page of your website.Paste this code as high in the Paste this code immediately after the opening
<head> of the page as possible (setting your GTM key):<body> tag (setting your GTM key):On Google Tag Manager
Select a Workspace
Click on ‘Current Workspace’ from the sidebar and then select another one if needed.
Add Your HTML
Enter your custom HTML code into the HTML text box. The code must include your topsort Marketplace API Key. To get a new token go to app.topsort.com → Settings → API Integration.
Set Triggering
Choose a trigger to determine when the HTML should be executed (e.g., Page View, Click, etc.).
Save and Preview
Save your tag and use the ‘Preview’ mode to test the functionality of your HTML on your site.
Verify
Check that the site is showing the banners, that the events are being reported correctly and that the opaqueUserId changes when using different browsers.











