Google Analytics 和本机移动应用程序 - Android 和 iOS SDK
我们有一个本机 iOS 应用程序,使用 Google Analystics iOS SDK 来跟踪“页面浏览量”和事件。
我们也准备推出 Android 版本。
我们有一个关于“应用程序启动”的事件,记录设备信息,包括设备和操作系统版本。
理想情况下,我希望能够对所有事情进行“切片和切块”,无论是我们的 iOS 还是 Android 应用程序 - 包括细化到单个事件的级别。
在我看来,有几种不同的方法可以做到这一点: - 查看数据并按“操作系统”划分。对于本机应用程序来说,这有多准确?我已经看到“Windows / Internet Explorer”出现在一个纯 iOS 的应用程序中,所以这让我感到紧张...
- 根据我们的“应用程序启动”事件创建一个自定义高级细分 - 但这似乎会“炸毁”GA,如果我认为尝试深入到细节层面。例如,如果我为 iPhone 创建一个分段,为 Android 创建一个分段,我可以在它们之间进行选择,但无法同时看到它们。
还有其他想法吗?
We have an native iOS application using Google Analystics iOS SDK to track "page views" and events.
We are preparing to launch an Android version as well.
We have an event on "app launch" that records device information including device and OS version.
Ideally, I want to be able to "slice and dice" just about everything by whether it is our iOS or Android application - including down to the level of individual events.
It seems to me there are a couple of different ways to do this:
- Look at data and divide up by "Operating System". How accurate is this for native applications? I have seen "Windows / Internet Explorer" show up for an app that is purely iOS so this makes me nervous...
- Create a custom Advanced Segment based on our "app launch" event - but this seems to "blow up" GA if I think try to drill down to the detail level. For example, if I create a segment for iPhone and one for Android, I can pick between them but can't see them both.
Other ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 建议使用相同的属性跟踪同一应用程序的不同平台(即 Android 的 MyApp 和 iOS 的 MyApp)。
https://support.google.com/analytics/answer/2587087
您可以进一步使用不同的视图深入了解不同平台的分析。
因此,为此属性创建三个视图。
默认情况下,当您创建媒体资源时,Google Analytics(分析)会创建一个默认视图。这是完整的统计视图。默认情况下,它没有任何过滤器和段。保持此视图不受影响很重要,因为向此视图添加过滤器将丢失数据。
要创建 iOS 统计视图,请转到“完整统计”的视图设置,然后单击“复制视图”并将其重命名为“iOS 统计”。在新的视野中。
转到“段”>“条件”并添加
操作系统匹配正则表达式 ^(iOS|iPad|iPhone|iPod)$
并保存它。
您的新视图仅具有 iOS 的流量。
对于第三个视图,请遵循类似的步骤,但添加
操作系统与正则表达式不匹配< /em> ^(iOS|iPad|iPhone|iPod)$
在高级段过滤条件中。
现在您的应用程序数据具有三个视图。一种是累积的,另一些则针对不同平台。
快乐追踪!!
Google recommends tracking different platforms of the same app (i.e., MyApp for Android and MyApp for iOS), using the same property.
https://support.google.com/analytics/answer/2587087
You can further drill down and view analytics for different platforms using different views.
So for this property create three views.
By default, when you create a property, Google analytics creates a default view. this is the Complete stats view. By default this does not have any filters and segments. Keeping this view untouched is important, because by adding filters to this view you will lose data.
To create Stats for iOS view, go to View settings for "Complete Stats" and click on "Copy View" and rename it to "Stats for iOS". In the new view.
Go to Segments>Conditions and add
Operating System matches Regex ^(iOS|iPad|iPhone|iPod)$
and save it.
Your new View has only traffic for iOS.
For the third view, follow similar steps, but add
Operating System does not match Regex ^(iOS|iPad|iPhone|iPod)$
in the advanced segment filter conditions.
Now you have three views for your app data. One cumulative, and others for different platforms.
Happy tracking!!
我发现您提到的“操作系统”是跟踪您正在寻找的内容的“足够好”的方式。我也看到其中没有任何意义的条目(Windows / IE),但它的数量很小,我只是忽略它。
也就是说,如果您想要更好的控制,“自定义变量”是一个很好的选择。直到最近,分析 SDK 还不支持此功能,但我相信 IOS 和 Android SDK 现在都支持它。更多信息请参见这些链接(grep 表示“自定义变量”):
http://analytics.blogspot.com/2010/12/custom-variables-for-your-android.html
http://code.google.com/mobile/analytics/docs/iphone/
http://code.google.com/mobile/analytics/docs/android/
它们定义为:
“自定义变量是名称-值对标签,您可以将其插入跟踪代码中,以优化 Google Analytics(分析)跟踪。使用自定义变量,您可以定义其他细分以应用于除 Analytics 已提供的访问者之外的访问者。”
I've found the "Operating System" that you mentioned to be a "good enough" way to track what you're looking for. I too see entries that don't make any sense in there (Windows / IE) but it's such a small number that I just ignore it.
That said, if you want greater control, "Custom Variables" is a great way to go. Until recently, the analytics SDKs didn't support this, but I believe both IOS and Android SDKs now support it. More info here in these links (grep for "custom variables"):
http://analytics.blogspot.com/2010/12/custom-variables-for-your-android.html
http://code.google.com/mobile/analytics/docs/iphone/
http://code.google.com/mobile/analytics/docs/android/
They are defined as:
"Custom variables are name-value pair tags that you can insert in your tracking code in order to refine Google Analytics tracking. With custom variables, you can define additional segments to apply to your visitors other than the ones already provided by Analytics."