Send info to google tag manager from backend

后端 未结 2 839
一个人的身影
一个人的身影 2020-12-22 08:11

Working on a website, I use Google Tag Manager and push some info with the dataLayer in Javascript. So far so good. However there are some information that should not be see

相关标签:
2条回答
  • 2020-12-22 08:41

    In 2020 Google has released Google Tag Manager for server-side tracking, where you run a container in a cloud environment that then distributes the requests. https://developers.google.com/tag-manager/serverside

    Facebook and Google Analytics Support this now. So you can move tracking to server side.

    0 讨论(0)
  • 2020-12-22 08:50

    GTM for the Web is basically a Javascript injector - the Interface is there to configure your tags, then everything is wrapped into a JavaScript function that is inserted into your page and executed by the browser. There is no serverside component that you could push data to.

    So quite probably the answer is no (unless you want to try really weird workarounds like running the container in a headless browser on your server or trying to abuse the mobile SDKs for GTM, which works rather differently than the web version). I guess it would be easier to send your serverside calls directly to the respective tracking services.

    0 讨论(0)
提交回复
热议问题