Prerequisites
1
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.
2
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):3
Create a div with the desired dimension on your site
You need to have a
<topsort-banner> tag in the HTML with the height and width of the slot you want to display.On Google Tag Manager
1
Log in to GTM
Open your Google Tag Manager dashboard.
2
Select a Workspace
Click on ‘Current Workspace’ from the sidebar and then select another one if needed.
3
Create a New Tag
Click on ‘Tags’ from the sidebar and then ‘New’.
4
Choose Tag Type
Select ‘Custom HTML Tag’ from the list of tag types.
5
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.
6
Set Triggering
Choose a trigger to determine when the HTML should be executed (e.g., Page View, Click, etc.).
7
Save and Preview
Save your tag and use the ‘Preview’ mode to test the functionality of your HTML on your site.
8
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.
9
Publish
Once verified, publish the changes to make the HTML live on your website.