public final 类 InstallReferrerReceiver
从 Google Play 商店安装应用时,系统会广播 Google Play com.android.vending.INSTALL_REFERRER
Intent。该 BroadcastReceiver 会监听该 intent,并将安装引荐来源网址数据传递给 GTM 移动应用和 Google Analytics(分析)。
要启用此接收器,请将以下内容添加到您的 AndroidManifest.xml 文件中:
<!-- Used for install referrer tracking-->
<service android:name="com.google.tagmanager.InstallReferrerService"/>
<receiver
android:name="com.google.tagmanager.InstallReferrerReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
此接收器将自动调用 Google Analytics(分析)接收器来设置广告系列数据。如果同时使用 Google Analytics(分析)SDK 和 Google 跟踪代码管理器 SDK,则只需启用此接收器。
公共构造函数摘要
公共方法摘要
void |