cordova - Google Analytics on phonegap app -
we planning use google analytics tracking in our phonegap based hybrid app. using single page architecture based on backbone. existing app , planning add tracking code now.
i know there couple of ways implement - 1) use phone gap plugin (https://github.com/danwilson/google-analytics-plugin) 2) use web version of gtm , add tracking code pages of app.
can me understand pros , cons of each , 1 recommended way?
the author of https://github.com/appfeel/analytics-google here.
gtm:
- p: easy go, no need install
- p: no new learning if use websites
- c: no native features
plugin:
- p: native app tracking (specific features apps in ga pannel)
- p: idfa & remarketing (with
cordova plugin add cordova-plugin-analytics-adid
see https://support.google.com/analytics/answer/2444872) - p: offers wrappers common actions (see documentation):
trackview(screenname, options, success, error);
- c: needs installed:
cordova plugin add cordova-plugin-analytics
in opinion, if know javascript, you'll have no problems going plugin option. if need fast-to-go solution, can go gtm. i'm pretty sure @ point you'll start think switching plugin option.
Comments
Post a Comment