Android - Is it possible to get install referrer programmatically

后端 未结 3 1133
刺人心
刺人心 2020-11-27 13:24

I have noticed some Google Play app links in the browser has the referrer= attribute to them, which obviously tells the referrer that sent you to that app\'s pa

3条回答
  •  攒了一身酷
    2020-11-27 13:45

    Campaign Parameters are used to pass information about the campaign or traffic source that referred a user to your app's Google Play Store page into your app's Google Analytics implementation.

    Once you've built your campaign parameter string, add it to your Google Play Store URLs as the value of the referrer parameter, as in this example:

    https://play.google.com/store/apps/details?id=com.example.app
    &referrer=utm_source%3Dgoogle
    %26utm_medium%3Dcpc
    %26utm_term%3Drunning%252Bshoes
    %26utm_content%3DdisplayAd1
    %26utm_campaign%3Dshoe%252Bcampaign
    

    The Google Play Store will pass the value of the referrer parameter to your app's Google Analytics implementation.

    References: https://developers.google.com/analytics/devguides/collection/android/v2/campaigns https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-url-builder

提交回复
热议问题