google analytics - Send dataLayer variables to GTM from backend post callback -
some gtm wisdom needed.
we use measure protocol send transactions google analytics & using gtm in "thank page". not happy that.
is there way can send data layer variables backend using gtm call? want know how solve using gtm & datalayer
my first idea try emulate measure protocol using similar https://developers.google.com/tag-manager/devguide#adding-data-layer-variables-for-devices-without-javascript-support
context: payment methods notify transactions backend system via background http post method call backend system, not interactive browser (where server-side code measure protocol request)
i add more clearance terminology using.
- measurement protocol http request
google-analytics.com
containingkey=value
pairs in query string or in post data. use documentation on goodle developers. direct input google analytics. - datalayer usualy javascript object containing
key : value pairs
check documentation here. keys accessible in gtm interface paired pre-prepared tags in particular fields. in case of non-javascript solution these parameters translated image request , sended in different way google analytics. - adding variables devices without javascript specifying js datalayer object in flatten mode parameters. mean not emulate measurement protocol, "simulate" datalayer.
my suggestion:
if have gtm setted in standard manners (by google documentation), use "adding data layer variables devices without javascript support" , save lot of time.
if using custom javascript implementations, measurement protocol image request.
Comments
Post a Comment