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.

  1. measurement protocol http request google-analytics.com containing key=value pairs in query string or in post data. use documentation on goodle developers. direct input google analytics.
  2. 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.
  3. 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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -