Tracking in Android
用户行为的统计
Google Analytics - Tracking
GA旧的统计方式是用Google Analytics SDK for Android.
跟踪4个方面
- App installations
- Active users and demographics
- Screens and user engagement
- Crashes and exceptions
如何配置
-
Update AndroidManifest.xml
开网络访问权限 -
Add EasyTracker methods (Activity level)
在onStart()
andonStop()
中添加send的方法, -
Create your analytics.xml file
全局的tracking配置, ga_trackingId, ga_autoActivityTracking, ga_reportUncaughtExceptions -
Gradle build dependencies中, 需要加入
compile files('libs/libGoogleAnalyticsServices.jar')