InstallReferrerReceiver
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
공개 최종 클래스
InstallReferrerReceiver
Google Play com.android.vending.INSTALL_REFERRER 인텐트는
앱이 Google Play 스토어에서 설치되어 있어야 합니다. 이 BroadcastReceiver는 이를 수신 대기합니다.
인텐트로, 설치 리퍼러 데이터를 모바일 앱용 GTM 및 Google 애널리틱스에 전달합니다.
이 수신기를 사용 설정하려면 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 애널리틱스 수신자를 호출하여
캠페인 데이터입니다. Google 애널리틱스 SDK와 Google 태그 관리자 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"]]