Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any easy way to test this? #2

Open
cristianoccazinsp opened this issue Feb 21, 2020 · 5 comments
Open

Any easy way to test this? #2

cristianoccazinsp opened this issue Feb 21, 2020 · 5 comments

Comments

@cristianoccazinsp
Copy link

Hello,

I'm wondering what's an easy way to test this? Considering one should publish to the store to get an actual referer, I can't think of an easy way to test locally.

@badver
Copy link

badver commented Apr 1, 2020

@ankitwandx
Copy link

Hi, @badver I am using the following broadcast,

echo 'am broadcast \ -a com.android.vending.INSTALL_REFERRER \ -n "com.mypackagename/com.google.android.gms.analytics.CampaignTrackingReceiver" \ --es "referrer" \ "utm_source=test_source&utm_medium=test_medium&utm_term=test_term&utm_content=test_content&utm_campaign=test_name"; \ exit' | ./adb shell

but using the library code

RNInstallReferrer.getReferrer().then(referrer=>console.log('INSTALL_REFERRER JS : ', JSON.stringify(referrer)));,

I get the following log:

{"clickTimestamp":"0","installReferrer":"utm_source=google-play&utm_medium=organic","installTimestamp":"0"}

I am sure I am doing something wrong here because the utm_source and utm_medium are not what I broadcasted. I think my issue is with the broadcast receiver.

If that is the case, what should be the broadcast receiver in the above echo command?

@badver
Copy link

badver commented May 5, 2020

@ankitwandx
I used this command:

echo 'am broadcast \
-a com.android.vending.INSTALL_REFERRER \
-n "com.____my___.____app____/com.google.android.gms.analytics.CampaignTrackingReceiver" \
--es "referrer" \
"utm_source=test_source&utm_medium=test_medium&utm_term=test_term&utm_content=test_content&utm_campaign=test_name"; \ 
exit' | adb shell

I don't see any differences with yours. Try to reinstall the app.

@mohamed-ikram
Copy link

@ankitwandx receiving same response as you {"clickTimestamp":"0","installReferrer":"utm_source=google-play&utm_medium=organic","installTimestamp":"0"} did u find a way to produce referral

@DurgeshSupraDigit
Copy link

DurgeshSupraDigit commented Dec 10, 2020

@ankitwandx
I used this command:

echo 'am broadcast \
-a com.android.vending.INSTALL_REFERRER \
-n "com.____my___.____app____/com.google.android.gms.analytics.CampaignTrackingReceiver" \
--es "referrer" \
"utm_source=test_source&utm_medium=test_medium&utm_term=test_term&utm_content=test_content&utm_campaign=test_name"; \ 
exit' | adb shell

I don't see any differences with yours. Try to reinstall the app.

================================
i ran the above script in terminal and got this as response in terminal => Broadcast completed: result=0 ,
what does this mean?.

Even after re installing the app it gives the same output as above:-
{"clickTimestamp":"0","installReferrer":"utm_source=google-play&utm_medium=organic","installTimestamp":"0"}

a.)So other way is the publish the app in Beta and test it... ?

or is there any other way to test it locally other than running the script

,

Gretchin pushed a commit that referenced this issue Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants