In this episode, the AdWords agency in Marseille will explain how built-in and custom variables work
The built-in variables
Firstly, Google Tag Manager is based on the context of the pages. This context consists of information about the page, as well as JavaScript events that have been executed.
Furthermore, thanks to GTM, you can interact with these elements using variables. You will enable built-in variables that are not displayed by Tag Manager:
- Click on «Configure». In the overlay, tick all the boxes labelled «pages», «clicks», «forms», «scrolling» and ‘visibility’. This information enables you to interact with elements on the pages

These variables will enable values to be passed directly from the page.
User-defined variables
Firstly, custom variables will help you make sense of your analyses. Furthermore, they can also help you improve accuracy. The constant comprising the UA code (Google Analytics unique identifier) is virtually essential for every GTM user.
Would you like to see only the query parameters contained in this URL: https://mondomaine.fr/ma-page?type=produit?
- Create a URL variable. Select «Request» under «Component type» and enter «type» as the request key.
With this configuration, the variable will consist solely of the term «product»

If you use tags with API keys or identifiers, you can create a constant comprising that identifier. This will allow you to change the identifier for all your tags.
Modification and detection of usage patterns
To conclude, to find out in which tags a variable is used, you need to click on it to view the list of occurrences. You can also modify a variable’s settings or content. This allows you to separate the technical aspects from the logic of data retrieval.
Created by Vaniseo, your web agency in Marseille
Contact us
Our team will get back to you within 24 hours
Fancy finding out how much each channel brings in?
Google Analytics 4, conversions, dashboards: we make your figures easy to understand.
