इंस्टॉल का रेफ़रलकर्ता
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पब्लिक फ़ाइनल क्लास
InstallReferrerReceiver
Google Play com.android.vending.INSTALL_REFERRER इंटेंट तब ब्रॉडकास्ट होता है, जब
ऐप्लिकेशन को Google Play Store से इंस्टॉल किया गया हो. यह BroadcastReceiver वह सुन रहा है
इंटेंट, मोबाइल ऐप्लिकेशन और Google Analytics के लिए इंस्टॉल रेफ़रर डेटा को GTM को पास करना.
इस रिसीवर को चालू करने के लिए, अपनी 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 Tag Manager SDK, दोनों इस्तेमाल किए जा रहे हैं, तो
सिर्फ़ इस रिसीवर को चालू करने की ज़रूरत है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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"]]