cordova - Ionic on Android: How to get Google Play campaign tracking parameters? -
i have ionic/cordova app google analytics plugin, setup google play store campaign tracking. utm parameters flow google analytics without problem.
however, access parameters application code, personalize experience based on source of installation, and/or use campaign information third party tracking solutions.
is there simple way receive play store campaign tracking in cordova application code, without writing native code?
i achieved months ago, problably needs modifications last analytics plugin
using plugin: https://github.com/tvhnet2014/phonegap-android-referrer-plugin allows retrieve tracking parameters native android code, , stores in application shared preferences later retrieval.
with plugin https://github.com/chrisekelley/apppreferences/ can access app preferences javascript, voilá, have data javascript.
problem: first plugin uses custom broadcastreceiver, probably, crashes broadcastreceiver of analytics plugin, have modify 1 of plugins, use same broadcastreceiver.
Comments
Post a Comment