@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