Skip to content

Setup Constants

It is essential to configure the constants variables in the server-side workspace to be able to provide the GTM script from your server and send the data through the API platforms.

Provide the GTM script

The GTM - SCRIPT CLIENT requires to define the allowed containers to be able to provide the GTM script from your server. This is essential to ensure that the GTM script is only provided to the allowed containers and to prevent any unauthorized access.

  1. In your GTM server-side workspace, click on Variables.
  2. On search input, type constant to filter the variables.
  3. Click on GTM - Web Container ID to edit the variable.

  1. Click on Variable Configuration panel.
  2. In the Value field, paste the GTM Web container ID.
  3. Click on Save to save the changes.

Configure API keys

For security reasons the module does not send the API keys in dataLayer, therefore depending on the tracking platform, it is essential to configure the constants variables in the server-side workspace to be able to send the data through the API platforms.

Platforms that requires to configure constants variables:

Once you have an API key, you can configure the constants variables in the server-side workspace. To do this, follow these steps:

  1. In your GTM server-side workspace, click on Variables.
  2. On search input, type constant to filter the variables.
  3. Click on API - YOUR_PLATFORM / Access Token to edit the variable.

  1. Click on Variable Configuration panel.
  2. In the Value field, paste the API key you obtained from the platform.
  3. Click on Save to save the changes.