InstallReferrerReceiver
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
class final publik
InstallReferrerReceiver
Intent com.android.vending.INSTALL_REFERRER Google Play disiarkan saat
aplikasi diinstal dari Google Play Store. BroadcastReceiver ini memprosesnya
Niat, dengan meneruskan data perujuk instal ke GTM untuk Aplikasi Seluler dan Google Analytics.
Untuk mengaktifkan penerima ini, tambahkan kode berikut ke file AndroidManifest.xml Anda:
<!-- 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>
Penerima ini akan otomatis memanggil penerima Google Analytics untuk menetapkan
Data kampanye. Jika SDK Google Analytics dan SDK Google Tag Manager sama-sama digunakan,
hanya penerima ini yang
perlu diaktifkan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[],["The `InstallReferrerReceiver` class listens for the `com.android.vending.INSTALL_REFERRER` intent, which is broadcast upon app installation from the Google Play Store. Upon receiving this intent, it passes install referrer data to Google Tag Manager (GTM) and Google Analytics. To enable, it requires a service and a receiver declaration in the `AndroidManifest.xml`, specifying the intent action. The class features a constructor and an `onReceive` method that processes the received intent. It also sets campaign data for the Google Analytics.\n"]]