Software Archive
Read-only legacy content
17060 討論

How to implement InstallReferrerReceiver in Cordova for Android?

Vijay_R_3
初學者
1,366 檢視
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
員工
1,366 檢視

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

Vijay_R_3
初學者
1,366 檢視

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
初學者
1,366 檢視

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
1,366 檢視

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

回覆