I am writing a hybrid mobile app using HTML5, CSS and jQuery Mobile. I will use Cordova Js to convert the HTML5 app to native mobile apps for iOS and Android. I want to use Google Analytics to track various activities performed by users. I found that GA provides SDKs for native apps but not much was specified for hybrid apps. Have you implemented tracking for Cordova or PhoneGap based apps? Can you provide me some direction on how to do it?
相关问题
- Should I use CSS3 media queries to deliver differe
- apk big size with ionic 4 build
- How to read file in android using PhoneGap Javascr
- Jquery mobile dual range slider reload with new ra
- jquery-mobile still “No Back Button” (Beta 2)
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Phonegap - Error - Keystore alias not recognized
- Can't use serve with Cordova / Phonegap hellow
- Checking & Unchecking Checkboxes inside a JQuery M
- How to correctly use google analytics measurement
- ionic - Copy/paste in input field in iOS 10 not wo
- PhoneGap iOS 7 and localStorage
- deviceready not firing in cordova
I use the ngCordova Google Analytics plugin. You don't need Angular or Cordova to use it http://ngcordova.com/docs/plugins/
The git and docs are here: https://github.com/danwilson/google-analytics-plugin
Easy to use.
Warning! When you set it all up leave it 24hrs to 'propagate' or whatever Google does. People find its not working and go searching for solutions (which cannot be found) and then BAM the next day its all good.
You can create a plugin to bridge between your JS and Native GA SDK. There are some already written plugins for your reference
Checkout implementation on http://shashibadhuk.com/phonegap/implement-google-analytics-on-phonegap-mobile-app/
for