java - Google Analytics 方法 Tracker.getReferer() 是否支持 android 应用 URI?

标签 java android android-intent google-analytics referrer

我想在我的 android 应用程序中跟踪 Activity 引用信息。

Google Analytics API 中的

setReferrer 似乎是一种合适的方法 ( com.google.android.gms.analytics.Tracker.setReferrer )

但是我找不到它的任何文档。
我能传递给它什么?只有网页链接?还是也支持 android 应用程序 URI?

比如:android-app://com.google.android.googlequicksearchbox/https/www.google.com

我从以下位置获取有关推荐人的信息:
android.app.Activity.getReferrer
android.content.Intent.EXTRA_REFERRER
android.content.Intent.EXTRA_REFERRER_NAME


编辑:

通过进一步的研究,我通过它的测量协议(protocol)参数 dr 在 Google Analytics 中发现了一些关于 referrer 的更多信息: developers.google.com/analytics/devguides/collection/protocol/v1/parameters#dr

Specifies which referral source brought traffic to a website. This value is also used to compute the traffic source. The format of this value is a URL.

但它也没有说明是否支持 android 应用程序 URI。

最佳答案

Google Analytics for mobile apps 似乎根本不支持 referrer 信息。

仅显示安装引荐来源网址。即使我发送此信息,我也无法在任何地方找到 Activity 推荐人。

关于java - Google Analytics 方法 Tracker.getReferer() 是否支持 android 应用 URI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35002419/

相关文章:

Android 翻译动画,如交换两个 View

Android "DataDroid"示例库 - 使用现有库多次调用 WS

java - 将两种方法合并为一种

java - 安卓|如何在 ScrollView 中使用 ExpandableListView?

android - Android 2.0是否向下兼容

android - 全屏呈现 Intent

java - 在不实现 Serializable 或 Parcelable 的情况下在 Intent 中传递对象引用

java - 找不到 Hibernate 异常 hibernate.cfg.xml

java - 将 Ellipse2D 转换为多边形

java - 将 Jpanel 放置在 Jframe 或另一个 Jpanel 的中间