Software Archive
Read-only legacy content
17061 ディスカッション

How to implement InstallReferrerReceiver in Cordova for Android?

Vijay_R_3
ビギナー
2,120件の閲覧回数
Hello, I am trying to implement InstallReferrerReceiver in an Android App published in PlayStore. So that we can send referral data (utm_source...) via the PlayStore link and get that data after the App gets installed on the device. If anyone has already made it possible via Cordova, please let me know. Thank you.
0 件の賞賛
4 返答(返信)
Elroy_A_Intel
従業員
2,120件の閲覧回数

You can use the https://github.com/danwilson/google-analytics-plugin Cordova Plugin to track installs of your application.

Vijay_R_3
ビギナー
2,120件の閲覧回数

Thank you so much. But seems it is not documented to get the Install_Referrer. I will check out the code and Analytics SDK, if you have already implemented do let me know.

Vijay_R_3
ビギナー
2,120件の閲覧回数

Elroy Ashtian Jr (Intel) wrote:

You can use the https://github.com/danwilson/google-analytics-plugin Cordova Plugin to track installs of your application.

Hello,

I have installed this plugin and while testing locally by broadcasting the below intent, it works fine and i get the referral data printed in the log ("utm_source=test"), is it possible to save the data received and store it in a local JavaScript variable.

Like, var referrer = "utm_source=test";

adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.example.app/com.google.android.gms.analytics.CampaignTrackingReceiver --es referrer "utm_source=test"

Thank you.

PaulF_IntelCorp
従業員
2,120件の閲覧回数

For that you might want to contact the plugin author, directly on his github site.

返信