简体   繁体   English

Google Analytics(分析)和本机移动应用-Android和iOS SDK

[英]Google Analytics and native mobile Apps - Android and iOS SDK

We have an native iOS application using Google Analystics iOS SDK to track "page views" and events. 我们有一个使用Google Analystics iOS SDK的本地iOS应用程序来跟踪“页面浏览量”和事件。

We are preparing to launch an Android version as well. 我们也准备发布一个Android版本。

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. 理想情况下,无论是iOS还是Android应用程序,我都希望能够对所有内容进行“切片和切块”-包括单个事件的级别。

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... 我已经看到纯粹是iOS应用程序出现了“ Windows / Internet Explorer”,这让我感到紧张...

  • 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. 根据我们的“应用启动”事件创建自定义高级细分-但是,如果我认为尝试深入到详细程度,这似乎会使GA崩溃。 For example, if I create a segment for iPhone and one for Android, I can pick between them but can't see them both. 例如,如果我为iPhone创建了一个细分,而为Android创建了一个细分,则可以在它们之间进行选择,但不能同时看到它们。

Other ideas? 其他想法?

Google recommends tracking different platforms of the same app (ie, MyApp for Android and MyApp for iOS), using the same property. Google建议使用相同的属性来跟踪同一应用程序(例如,Android的MyApp和iOS的MyApp)的不同平台。

https://support.google.com/analytics/answer/2587087 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. 因此,为此属性创建三个视图。

  • Complete Stats -- this view has traffic from all platforms. 完整统计信息-该视图具有来自所有平台的流量。 Useful for creating cumulative reports irrespective of platforms. 不论平台如何,均可用于创建累积报告。
  • Stats for iOS -- this view has traffic only from iOS (iPhone/iPad apps) iOS的统计信息-该视图仅具有来自iOS的流量(iPhone / iPad应用)
  • Stats for Android -- this view has traffic from Android (phones and tablets) Android的统计信息-该视图具有来自Android(手机和平板电脑)的访问量

By default, when you create a property, Google analytics creates a default view. 默认情况下,当您创建属性时,Google Analytics(分析)会创建一个默认视图。 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". 要为iOS视图创建统计信息,请转到“完整统计信息”的“查看设置”,然后单击“复制视图”,并将其重命名为“ iOS统计信息”。 In the new view. 在新视图中。 Go to Segments>Conditions and add 转到细分>条件并添加

Operating System matches Regex ^(iOS|iPad|iPhone|iPod)$ and save it. 操作系统匹配Regex ^(iOS | iPad | iPhone | iPod)$并保存。 Your new View has only traffic for iOS. 您的新视图仅适用于iOS。

Google Analytics(分析)细分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. 在高级细分过滤条件下,操作系统与Regex ^(iOS | iPad | iPhone | iPod)$ 不匹配

Now you have three views for your app data. 现在,您拥有三个应用数据视图。 One cumulative, and others for different platforms. 一种是累积的,另一种是针对不同平台的。

Happy tracking!! 追踪愉快!!

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. 我也看到在那里没有任何意义的条目(Windows / IE),但是它的数目很小,我只是忽略了它。

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. 直到最近,分析SDK都不支持此功能,但我相信IOS和Android SDK现在都支持此功能。 More info here in these links (grep for "custom variables"): 这些链接的更多信息(“自定义变量”的grep):

http://analytics.blogspot.com/2010/12/custom-variables-for-your-android.html 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/iphone/

http://code.google.com/mobile/analytics/docs/android/ 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." 它们的定义如下:“自定义变量是您可以在跟踪代码中插入的名称/值对标记,以优化Google Analytics(分析)跟踪。使用自定义变量,您可以定义其他细分来应用于您的访问者,而不是已经提供的细分通过Google Analytics(分析)。”

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

相关问题 适用于原生移动应用的SAML(Android和IOS) - SAML for Native Mobile Apps(Android and IOS) 如何将google +与ios和android native应用集成? - How to integrate the google + with ios and android native apps? Google Analytics(分析)Android SDK - Google Analytics Android SDK 具有OpenGL和嵌入式Webview的本机移动应用程序(iOS / Android)的测试框架 - Test Framework for native mobile apps (iOS/Android) with OpenGL and Embedded Webviews 赛普拉斯能否用于自动化原生和/或混合 iOS/Android 移动应用程序? - Can Cypress be used to automate native and/or hybrid iOS/Android mobile apps? Google Analytics(分析)会话对移动设备(iOS和Android)计数错误 - Google analytics session count wrong for mobile (iOS & Android) google 的 Map SDK 计费如何适用于 Android 和 Z1BDF605991920DB14EBF850820 应用程序? - How google's Map SDK billing works for Android and iOS apps? 适用于IOS和Android的应用程序的jquery mobile? - jquery mobile for apps for IOS and Android? 适用于IOS / Android的移动支付SDK? - Mobile Payment SDK for IOS/Android ? Android应用上的Google Analytics自定义事件跟踪 - Google Analytics custom event tracking on android apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM