AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2.2K members online now
2.2K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Problem with GTM variable

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I have created a GTM javascript variable to extract a global variable.

like testDataLayer.passengerList[0].frequent_flyer.tier_level

 

When I am testing this value in console it's working but in GTM debugger it's give me as Undefined.

Any suggestion.

Problem with GTM variable

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Hi Namrata,

 

Please be sure that Data Layer Version is selected as Version 2.

In order to help you better, can you please provide us your dataLayer object content that you are using ?

 

Regards,

Güney