Installing Unless with Google Tag Manager (GTM)

How to install the Unless script using Google Tag Manager (GTM).

If you are using Google Tag Manager to manage your marketing tags, you can use the GTM Installer template to install Unless in your website. Without any code access, our GTM Installer simply connects your website to the underlying Unless platform.

Important

Take note: you can only use the GTM Installer if you are in the Starter Plan or if you are exclusively using smart add-ons in one of the more expensive plans. Installing the snippet with GTM cannot be used for inline personalizations, since the nature of GTM may cause flashes on unrendered content.

Install instructions

  • Go to Google Tag Manager.
  • Click "Tags" and create a new Tag using the "New" button.
  • Click on Tag Configuration and use the "Discover more tag types in the Community Template Gallery" link at the top.
  • From this list search for "Unless installer" and click "Add to workspace"
  • Enter your Unless account ID in the "Unless Account ID" field.
  • Name the Tag "Unless Installer" at the top right.
  • Choose "All Pages" as the trigger for this Tag.
  • Save the Tag and Publish a new version of your GTM workspace.

After at least one person has visited your website (it could be you), our dashboard will tell you that the script is installed.

For the advanced people: to verify if it worked, you can also use the browser console. Go to your website, open the developer tools by clicking right-mouse and "inspect" - and you should see "Loading Unless.com v5.x.x" being printed in the console tab...