Numm3n
Numm3n

Reputation: 1031

Custom Javascript variable in Google Tag Manager and dataLayer

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

Answers (1)

Numm3n
Numm3n

Reputation: 1031

The answer to this question is to use the normal brackets {{variable_name}} to get the value of dataLayer variables

Upvotes: 3

Related Questions