Placing tracking code Squeezely

In order for Squeezely to function, it is required to place a tracking code on your website. This allows you to trigger events on your website from the Squeezely platform.

Retrieving tracking code

You can retrieve the code by going to the settings of your Squeezely account. Then click on Set up guide. You can copy the tracking code or view the code.

Tracking script.png

Place tracking code in the html of your website

Place the tracking code on your website in the section of the <Head></Head> HTML.

Place tracking code with Google Tag Manager

If you cannot or do not want to make a code change, you can also place the tracking code via Google Tag Manager. By means of an Account ID, Google Tag Manager knows which Squeezely account it should communicate with. Take the following steps:

  1. In Google Tag Manager, create a variable called: Squeezely-Account ID.

    Variabele_Google_Tag_Manager.png

  2. For variable type, choose: Constant

    Variable_type.png

  3. Open the unique Squeezely account ID. You can do this by going to Settings. Click on the gear at the bottom and then on Settings. 

    Settings.png

    In the first screen you will see Account ID. Click on the eye to view the Account ID.

    Account id.png

    Copy a paste this ID into Google Tag Manager when configuring the variable.

    Unieke ID.png

  4. Create a new Tag named Squeezely - Base Script + Page View.

    Tag maken.png

  5. For Tag type, select Custom HTML

    Tag type.png

  6. Add the tracking code of the Squeezely platform and replace the AccountID in the script with the variable setting.

    Custom code aanpassen.png

  7. Select All Pages - Page View trigger to ensure that this tag is always triggered.

    All pages.png

Checking tracking code

When you have placed the tracking code you can click on the button I added the tracking code or App in the same settings. The code will then be validated. If you see an error message, please contact Support.