Send new value to Google Tag Manager through dataLayer from fancybox (ajax) -


i'm using gtm , need sending several values each web/product.

in specific web i've lightbox data user , need send "conversionvalue" different value when user finish task.

when try using datalayer.push add new object original datalayer (as in fancybox loaded ajax, not iframe, gets "parent page" datalayer), datalayer many objects , last 1 has correct "conversionvalue".

the problem is, if try use variable gtm, gets first object conversionvalue...

should clear datalayer before pushing new objects? doing wrong? there other way this?

after reading google tag manager, doesn't matter if add new objects datalayer because variables can't readed gtm same way read them first time.

you have read new values defining events.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -