Reputation: 11442
When using the GTM (Google Tag Manager) dataLayer variable, is it ok to pass objects whose properties are revealed via getters? In the image below, the last item pushed to the dataLayer array shows ellipses (...)
for the properties. When hovering over the ellipses you get the message "Invoke property getter".
I want to confirm whether this can be a problem for GTM or not.
Upvotes: 1
Views: 286
Reputation: 8736
It will cause the issues in GTM because it's expecting simple JS properties and not getters. In gtm.js
it just reading properties and not executing them
Upvotes: 2