Eldho Abraham
Eldho Abraham

Reputation: 1

Can I test GTM Datalayer(goole tag manager) by adding data to datalayer through console

I have added data to datalyer through console.but the same is not getting relfected under datalayer tab under google tag assistant extension in chrome

I tried dataLayer.push({ 'event': 'new_subscriber', 'formLocation': 'footer' });

but datalayer not updating in tag assistant. how to verify if this is working as i dont have access to the gtm portal

Upvotes: 0

Views: 973

Answers (1)

darrelltw
darrelltw

Reputation: 2372

The Datalayer is only an array.

Easiest way to check is just console the datalayer.

If you want to check is the GTM also listened.

You can install the following extensions:

https://chrome.google.com/webstore/detail/dataslayer/ikbablmmjldhamhcldjjigniffkkjgpo

https://chrome.google.com/webstore/detail/gtmga-debug/ilnpmccnfdjdjjikgkefkcegefikecdc

Upvotes: 0

Related Questions