Reputation: 1031
I need to fetch some data from dataLayer in the Custom Javascript variable, but when I inspect dataLayer, it's always empty even that I have pushed values to dataLayer before I run the GTM script. Does anyone know if its possible to get values from dataLayer in custom javascript variable?
Upvotes: 1
Views: 1732
Reputation: 1031
The answer to this question is to use the normal brackets {{variable_name}} to get the value of dataLayer variables
Upvotes: 3