Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Google analytics plugin, not working on iOS, but good on android

$
0
0

@fasilpv wrote:

Hi there,

I am using https://github.com/danwilson/google-analytics-plugin.git plugin to achieve the google analytics. This is working good on android but not on iOS. This is what I am doing

. $ionicPlatform.ready(function() {
. .... if(typeof analytics !== 'undefined') {
. .... .... analytics.startTrackerWithId(this.getId(), function(success) {
. .... .... .... console.log("Google analytics started " + success);
. .... .... }, function(error) {
. .... .... .... console.log("Google analytics could not be started " + error);
. .... .... });
. .... } else {
. .... .... console.log("Google analytics cannot be initialized. Unavailable");
. .... }
});

On iOS, the typeof analytics is always 'undefined', and so this is not working. Can anyone help me on this?

Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>