...
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Contener connection and selection
Tags template selection
Template edition Fill in the 3 following fields:
Consent
Publishing
In the case of the a single tag for initialization If you use a single tag for initializing your analytics solution and for sending the page view event, then simply place the Adloop tag before your Analytics tag and modify your Analytics tag to include the code for populating the custom dimension. Below is an example of how you can implement it with Google Analytics 4 (add line 2 and 6 in your GA4 code) :
There are two ways to set up the custom dimensions:
There is function that you can call anywhere you want. This function automatically fills the custom dimensions when using GTAG, GA or PA analytics objects.
In case of a specific setup, it is also possible to set the custom dimensions manually (if the usual method doesn’t work, most probably because of the execution order of the Adloop tag). a. For Piano Analaytics The Adloop dimensions values are stored in a variable called (you write this in the console debugger of your browser if you want to see what’s inside) :
For example (in this case, the example implements the queue system of Piano, ‘paq’) :
Notes for debugging: There are some debugging logs for this new feature, that you can access in the console debugger of your browser. For you to be able to see it, you need to create a new cookie for the website that you are setting up (using a browser extension, like Cookie Master) The cookie must be named “ With this cookie, you will see that kind of logs : b. With GA4 In the pageview tag, add after the params var definition, add the following code:
|
Expand | ||
---|---|---|
| ||
adloop_click_1 and for the value select the first user defined variable you created previously using the brick button adloop_click_1_meta and for the value select the second user defined variable you created previously using the brick button Note: the name of the value between {{ }} depends on how you named your user defined variable ; it might be different from the screenshot above.
|
...
If you have a preview mode, use it before publishing !
In GTM, using the preview mode
In CAX, using chrome or resource override extension
Click on the F12 button of your computer or right-click > Inspect to open the Console and go to the Network tab. In the filter box, type :
...