To integrate Smartlook into your webpage with the help of Google Tag Manager (GTM), you’ve 2 options—either by utilizing the “Custom HTML” tag or our “Smartlook Tag Template.”

Note: In both cases, you first need to have GTM implemented on your website, so we’ll start with that. If you do have GTM installed already, you can skip to the second part of this guide—Implementing Smartlook with GTM.

Implementing GTM

To be able to deploy Smartlook this way, you’ll first need to implement GTM itself, and below we’ve described all the basic steps to follow. You can also follow the official Setup and Install GTM guide that has more general information.

1. Create a GTM account

Go to the GTM homepage and create an account.

2. Implement GTM to your website

Once you’ve created an account, a pop-up will appear with instructions how to implement GTM to your website.

Note: If you close the instructions, you can always open them back up by clicking on your container ID, formatted as “GTM-XXXXXX” displayed on the right side of the top bar.

Once you’ve GTM implemented, you’re now ready to implement Smartlook.

Implementing Smartlook with GTM

The first thing you’ll need to do is to create a new tag for Smartlook and this, can be done in two ways, with the help of a Custom HTML tag or our Smartlook Tag Template.

As implementation via our Smartlook Tag Template is a bit more straightforward, we’d recommend proceeding with that option, but we’ve listed both of the options here, just in case.

Smartlook Tag Template

Please see the video below for step-by-step instructions on how to proceed—it’s essentially just a matter of copy-pasting your project key into the template, setting up the trigger, and publishing the changes.

NOTE: Our UI has changed a bit, so to find your project key, please go to your project settings, and copy it from there - see the gif below.

Once you’ve done this, just refresh your website, and you should see your session in your Smartlook account.

Custom HTML tag

This implementation method is a bit more complex, but straightforward nevertheless.

1. Copy the whole tracking script for your project.

2. Add a new Custom HTML tag

3. Insert the code into the template, set up the trigger to “All Pages” and “Page View” and save it.

4. Don’t forget to “Submit” and “Publish” the changes, otherwise this data will not propagate to your website.

Once you’ve done this, just refresh your website, and you should see your session in your Smartlook account.

TIP: If you’re having trouble implementing Smartlook using GTM, then please don’t hesitate to contact our support team on, we’ll be more than happy to help you.

Did this answer your question?