secureprivacy.ai

Secure Privacy Support Center

Search for any help questions or topics.

How to install Secure Privacy with Google Tag Manager (GTM)

Secure Privacy can be easily deployed via Google Tag Manager. Prerequisites: a GTM account, a website container in GTM and the snippet added to your website
Avatar
Andrew Sidorkin
Updated 4 months ago

Websites using Google Tag Manager (GTM) can easily deploy Secure Privacy by following these step-by-step instructions.

We assume that you have already created a GTM account, created a website container in GTM and added the GTM container snippet to your website as required: https://support.google.com/tagmanager/answer/6103696


Implementing Secure Privacy in GTM


  1. In your GTM container, create a new tag by clicking Tags New Custom HTML Tag.


  2. To the “HTML” field inside GTM - please insert the installation script tag from your installation page inside your Secure Privacy account.

    <script>  
    var s= document.createElement("SCRIPT");
    s.src = "https://app.secureprivacy.ai/script/123123123123123123.js",
    s.type = "text/javascript",
    document.getElementsByTagName("head")[0].appendChild(s)
    </script>

  3. Choose “All pages” as a trigger and apply a name to your tag at the top of the configuration page, e.g. “Secure Privacy Script”. Click “Save” to create the tag. This is what your tag configuration should look like (except for the value of the script source):



4. Finally, click “Publish” to push your changes live to your site.

The consent banner is now active on your website!

Was this article helpful?
😞 😐 😃