I’ve been trying to get Google Analytics to work in PhoneGap 1.2.0 over Android and iOS.
What are the main differences between Android and iOS when using Google Analytics in PhoneGap 1.2.0?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The three main components required and the different parts for Android and iOS.
GAP-alytics from phonegap-plugins
Google Analytics from Google
PhoneGap from PhoneGap
<plugin name="GoogleAnalyticsTracker" value="com.package.path.to.class.GoogleAnalyticsTracker"/>to res/xml/plugins.xml fileNB: Remember that even though the iOS and Android versions have a
phonegap-1.2.0.jsfile they are NOT the same file. The code is different and you can’t just copy it between platforms. Make sure your app uses the appropriate version.Android Javascript
iOS Javascript
NB. the variable ‘whichpage’ MUST be preceded with a forwardslash (/). Android will let you away without this. iOS will NOT.