gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 01:36:53 25 4
gpt4 key购买 nike

我想在我的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com