How to manually install cookie consent banner and privacy policy using Google Tag Manager (GTM)
Code to paste in custom HTML
- To find this code follow these steps:
- Login to your Seers account and click on "cookie consent".
- Select the domain and then click on "get code"
- Now click on this icon and you will find this code.
<script>(function() {
var head = document.head || document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdn.consents.dev/banners/XXXXX/XXXXX/cb.js';
script.setAttribute('data-key', XXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX);
script.setAttribute('data-name', 'CookieXray');
head.insertBefore(script, head.firstChild);
})();</script>
Step 1
Create an account on GTM
Step 2
Click on “Tags” to ribbons in right.
Step 3
Click on the “New” button
Step 4
Name it “Seers Cookie Consent”, then click on the tag
Step 5
Click on “Custom HTML”
Step 6
Paste script provided by Seersco.com, then check “Support document write”
Step 7
Choose a trigger to fire the GTM tag.
Step 8
Click the “+” (plus) symbol on the top right corner.
Step 9
Choose “Domain ID” in the top left corner and then click a trigger type icon.
Step 10
Click on “DOM Ready”
Step 11
Click on the “Save” button on the right top corner to save trigger configuration.
Step 12
Click the “Save” button to save the tag.
Step 13
Click the “Submit” button to submit the GTM tag.
Step 14
Add version name and description of the tag, then click the “Publish” button and your GTM tag will be published.