谷歌分析运动跟踪没有出现在报告了 [英] Google Analytic campaign tracking not showing up in report

查看:267
本文介绍了谷歌分析运动跟踪没有出现在报告了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现谷歌分析跟踪运动中的Andr​​oid。我遵循这个指南:<一href="https://developers.google.com/analytics/devguides/collection/android/v2/campaigns">https://developers.google.com/analytics/devguides/collection/android/v2/campaigns

I'm trying to implement Google Analytic campaign tracking in Android. I followed this guide: https://developers.google.com/analytics/devguides/collection/android/v2/campaigns

和这里是我做了什么:

补充这AndroidManifest:

Added this to AndroidManifest:

<!-- Used for install referral measurement-->
<service android:name="com.google.analytics.tracking.android.CampaignTrackingService"/>
<receiver android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver" android:exported="true">
  <intent-filter>
    <action android:name="com.android.vending.INSTALL_REFERRER" />
  </intent-filter>
</receiver>

遵循这个指南(<一href="https://developers.google.com/analytics/solutions/testing-play-campaigns">https://developers.google.com/analytics/solutions/testing-play-campaigns)执行广播:

adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.my.app/com.google.analytics.tracking.android.CampaignTrackingReceiver --es  "referrer" "utm_source%3Dtest_source%26utm_medium%3Dtest_medium%26utm_term%3Dtest_term%26utm_content%3Dtest_content%26utm_campaign%3Dtest_name"

我查了logcat的,它显示该行是否正确:

I checked the logcat, it's showing this line correctly:

02-12 11:47:13.190: I/GAV3(18963): Thread[GAThread,5,main]: Campaign found: utm_source%3Dtest_source%26utm_medium%3Dtest_medium%26utm_term%3Dtest_term%26utm_content%3Dtest_content%26utm_campaign%3Dtest_name

不过,它有另外2个额外的行:

However, it's having another 2 extra lines:

02-12 11:47:18.280: W/System.err(18963): [DEBUG] GbaRequest - GbaRequest: Constructor Called 222 userAgent Apache-HttpClient/UNAVAILABLE (java 1.4)
02-12 11:47:18.280: W/System.err(18963): [DEBUG] NafRequest - NafRequest: NafRequest constructor===useragent Apache-HttpClient/UNAVAILABLE (java 1.4) 

和我检查了GA报告页面收购事项 - >谷歌播放 - >源,而这只是显示(未设置),(无)或(直接),而不是,等我期待看到: test_source test_medium 等。

and I checked the GA report page under Acquisition-->Google Play-->Sources, and it's only showing (not set), (none) or (direct), but not the source, medium, etc I'm expecting to see: test_source, test_medium, etc.

  • 注:我已经改了日期的过滤器,以今天的日期,并等待24小时,它仍然没有显示

任何人都面临着这一点,并知道如何解决?

Anyone faces this and knows how to solve?

推荐答案

该运动接收机和服务已被转移到一个不同的包名V2和谷歌Analytics(分析)SDK V4之间。这可能会造成问题。

The Campaign receiver and service have been moved to a different package name between v2 and v4 of Google Analytics SDK. This might be causing the problem.

在V2包是com.google.analytics.tracking.android:

In v2 the package is com.google.analytics.tracking.android:

com.google.analytics.tracking.android.CampaignTrackingReceiver
com.google.analytics.tracking.android.CampaignTrackingService

在V4的包是com.google.android.gms.analytics:

In v4 the package is com.google.android.gms.analytics:

com.google.android.gms.analytics.CampaignTrackingReceiver
com.google.android.gms.analytics.CampaignTrackingService

您应该遵循从V4,而不是V2的开发指南: 的https://developers.google.com/analytics/devguides/collection/android/v4/campaigns

You should follow the dev guide from v4 instead of v2: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns

这篇关于谷歌分析运动跟踪没有出现在报告了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆