简体   繁体   English

Google跟踪代码管理器iOS集成–是否向Google Analytics(分析)发送值?

[英]Google Tag Manager iOS Integration – sending values to Google Analytics?

So I'm following Google's atrocious documentation for Google Tag Manager, investigating for my employer whether it's “worth” switching from Google Analytics to using GTM. 因此,我在跟踪Google为Google跟踪代码管理器提供的残酷文档,为我的雇主调查是否值得从Google Analytics(分析)转换为使用GTM。 There's a huge lack of clarity in the documentation of what the difference between the two is, but I've gleaned that GTM in fact seems to just give the marketing team a little more flexibility in the way they collate data on their end. 两者之间的区别在文档中非常不清楚,但是我认为GTM实际上似乎给营销团队在整理数据的方式上提供了更多的灵活性。

I'm struggling to understand exactly what benefits GTM has over a simple integration of GA (like we already have). 我正在努力确切地了解GTM与GA的简单集成(如我们已经拥有的)所带来的好处。

Secondly, and more technically, following through the examples with a completely fresh Google account, but nothing shows up in the real time view at all, no active users, nothing coming through. 其次,从技术上讲,更详细地讲解示例,并使用一个全新的Google帐户,但是实时视图中什么都没有显示,没有活动的用户,也没有消息通过。 I've carbon-copied their example code, like so: 我已经将其示例代码复本了,如下所示:

[self.tagManager.dataLayer push:@ {
    @"event"                  : @"openScreen",
    @"screenName"             : screen
}];

Has anyone done this? 有人这样做吗? Do you need to do anything specific with it? 您需要对此做任何特定的事情吗? Here's what it looks like in GTM, I have no idea if it's right: 这是GTM中的样子,我不知道是否正确:

在此处输入图片说明

The solution for me was to send a variable key called event , and map that on the GTM end to a data layer variable. 对我来说,解决方案是发送一个名为event的变量键,并将其在GTM端映射到数据层变量。 It didn't seem to know it was an Event until I did that. 直到我这样做,似乎才知道这是一个盛会。 Completely undocumented on Google's end, so no idea if that's what you're supposed to do. 在Google的一端完全没有记录,因此不知道那是您应该做的。

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

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