简体   繁体   English

适用于iOS的Google跟踪代码管理器

[英]Google Tag Manager purpose on iOS

Can somebody please explain me what is the purpose of using Google Tag Manager (GTM) on an iOS app? 有人可以解释一下在iOS应用中使用Google跟踪代码管理器(GTM)的目的是什么? Currently I am working on an app which part of the legacy configuration resides on GTM but I cannot find any purpose of this. 目前我正在开发一个应用程序,旧版配置的一部分驻留在GTM上,但我找不到任何此目的。

I've read the documentation but I find it very confusing. 我已经阅读了文档,但我发现它非常令人困惑。

It mentions to add GoogleTagManager pod, add the json corresponding to your container and "preview" it with a Custom URL Schema. 它提到添加GoogleTagManager窗格,添加与容器对应的json,并使用自定义URL架构“预览”它。

The things that I dont understand are: 我不明白的事情是:

  1. Why adding GoogleTagManager pod if you are not using it in your app, there is no import or anything like that 如果你没有在你的应用程序中使用它,为什么要添加GoogleTagManager pod,没有导入或类似的东西
  2. Why download the container (json file) and add it into your project. 为什么要下载容器(json文件)并将其添加到项目中。 Based on the documentation, it doesnt mention anything about linking this json file with your actual xcode project. 根据文档,它没有提到任何关于将此json文件与您的实际xcode项目相关联的内容。
  3. How by using a custom URL Schema will test your container? 如何使用自定义URL架构来测试您的容器? On the documentation doesnt mention anything about handling this custom URL schema. 在文档中没有提到有关处理此自定义URL架构的任何信息。

So based on the documentation I dont find any purpose of using GTM at all. 因此,根据文档,我根本没有找到使用GTM的任何目的。 The thing that for me makes sense is when login an event using Google Analytics, by calling Analytics.logEvent... , but this is Google Analytics, not GTM. 对我来说有意义的是,当使用Google Analytics登录事件时,通过调用Analytics.logEvent... ,但这是Google Analytics,而不是GTM。

I will appreciate if someone can provide some information about this. 如果有人可以提供有关此信息,我将不胜感激。 Thanks in advance. 提前致谢。

Google Tag Manager is used, when you want to change some custom event data on the build which is already live(on App store) and you don't want to resubmit the new build just for the event. 当您想要在已经存在的构建(在App商店上)上更改某些自定义事件数据并且您不想仅为该事件重新提交新构建时,将使用Google跟踪代码管理器。 For more details you can refer this link . 有关详细信息,请参阅此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM