utm_source=(not%20set)&utm_medium=(not%20set) Google play referal

3.7k views Asked by At

I have developed an application where user can refer other users and can earn incentives. I am getting the expected UTM_SOURCE and UTM_MEDIUM values in 85% of cases but in rest of the cases i am getting utm_source=(not%20set)&utm_medium=(not%20set).

I have used latest Play Install Referrer Library from here and traditional campaignReceiver in parallel.

I have spent days looking for the reason and have gone through the available answers but none of them provides the clarity. As everywhere major reason of this is mentioned as

For a deep link into Google Play where the referrer parameter is not present or empty, the referrer value provided is:

utm_source=(not%20set)&utm_medium=(not%20set)

This can not be our reason as we have created the link from here and final link looks like

https://play.google.com/store/apps/details?id=com.abc&referrer=utm_source%3DCheck%26utm_medium%3DTest
2

There are 2 answers

0
Jorn Rigter On

From @najm 's answer from this answer pointed out by @daaniaal, it's because of enterprise accounts logged into the Play Store:

You're most likely logged into a managed account (e.g. a work email). It doesn't matter if you have your personal account active in Play Store. The Play Store consistently checks all accounts that you're signed into on that phone. If any of them are managed by an enterprise then the Play Store resets the referrer token. You can verify this by removing said account and retry sending the token.

1
daaniaal On

This answer is working: https://stackoverflow.com/a/54884659/2443123

For making it work, login with another google account(which you haven't installed application even once) and pass referrer. Referrer is bind to google account not to device.