Implementing using Google Tag Manager

You need to implement your tracking code before you can begin using Smartlook. One of the easiest methods is using Google Tag Manager.

Implementing Google Tag Manager

You first need to install Google Tag Manager in your project. Then, to implement your tracking code, you can:

  • use the Smartlook Tag Template
  • create a custom HTML tag

Smartlook Tag Template

  1. Copy your Smartlook project key from your Project settings.
  2. In your Google Tag Manager, click Add a new tag.
Add a new tag
  1. Click Tag Configuration.
  2. Click Discover more tag types in the Community Template Gallery.
  3. Search for Smartlook and click it.
  4. Click Add to workspace, and then Add.
  5. Paste your project key in the field.
  6. Click in the Triggering box and select All Pages, and then Add.
Add project key GTM
  1. Click Save.
  2. Back on the Google Tag Manager dashboard, click Submit, and then Publish.

You can skip the final step. Smartlook is now implemented in your project.

Creating a custom HTML tag

  1. Copy your tracking code from your Project settings.
  2. In your Google Tag Manager, click Add a new tag.
  3. Choose a Custom HTML tag.
Custom HTML tag GTM
  1. Enter a title and paste the tracking code in HTML.
  2. Under Triggering, select All pages.
Custom HTML GTM
  1. Click Save, give the tag a name, and click Save again.
  2. Back on the Google Tag Manager dashboard, click Submit, and then Publish.

You can skip the final step. Smartlook is now implemented in your project.

Finishing implementation

Once your tag is set up in Google Tag Manager, refresh your website and you're all set.