uerceg / play-install-referrer-react-native

Play Install Referrer Library ported to React Native
MIT License
26 stars 2 forks source link

Install referrer = utm_source=(not%20set)&utm_medium=(not%20set) #16

Open Shahnewaj opened 3 years ago

Shahnewaj commented 3 years ago

Hi , referrer details is not available. Always give this : utm_source=(not%20set)&utm_medium=(not%20set) Where as url has referral code like : https://play.google.com/store/apps/details?id=com.arogga.app&referrer=utm_source%3Darogga%26utm_medium%3Dlink%26utm_term%3Drefer%26utm_content%3D123456%26utm_campaign%3Dtest or : https://play.google.com/store/apps/details?id=com.arogga.app&referrer=1234567

nothing is working . I need actually the second url type to be working

Screenshot 2021-09-29 at 12 31 45 AM
danruss commented 2 years ago

Having the exact same issue - have you found a solution?

uerceg commented 2 years ago

Hi @Shahnewaj, hi @danruss,

How are you guys performing this test where you're getting organic value back?

Shahnewaj commented 2 years ago

@uerceg ,make a apk or .aab file and upload it to internal testing and the try it .
@danruss , i am using react-native-device-info for this feature .

uerceg commented 2 years ago

As far as I know, in order to run actual test to see if install referrer value is properly captured, you would need to actually redirect to your app in Play Store, download it and then check what is the value of the referrer. Back in the days when install referrer value has been delivered with the INSTALL_REFERRER intent, one could simply ping the app with adb command to broadcast this intent. But nowadays with install referrer library (which is bonded to Play Store app service under the hood), I am not sure if one can test this easily without having an app in the Play Store. For any local test you might do, I think that organic referrer value will always be returned by default.

vignesh-pibase commented 4 weeks ago

You can test it on Playstore.

I did in following way.

I have created urls like https://play.google.com/store/apps/details?id=fullpackagename&referrer=utm_source%3Dmysource&utm_content%3Dmycontent&hl=en
I have fired this url from my mail. It redirects to Playstore
From command Prompt(using adb command) , I have installed desired apk.
On Playstore, "install" button will be replaced with "open" button and I clicked on that. it is working