Page 1 of 2

Google analytic plugin not found

Posted: Mon Aug 04, 2014 9:25 am
by Biteaa Me

I followed the google analytic tutorial and created a sample app and eventhough its a little slow to respond, it works, I can see the app live. But when I try to add it to an old existing project. its failing to find the ga plug in. I put alert boxes in both testing and real project and in the test one the plugin is found and in the old one its failing to find the plugin
this is the code is used
code
var gaSuccessHandler = function(result) {
//alert('GA initialized: ' + result);
};

var gaErrorHandler = function(error) {
alert('GA initialization failed: ' + error);
};

var gaNativePluginResultHandler = function(result) {
//alert('Event tracked: ' + result);
};

var gaNativePluginErrorHandler = function(error) {
//alert('Event tracking failed: ' + error);
};

var getGAPlugin = function() {
if (window.plugins) {
alert("Plugin found");
console.log('GA Plugin found');
return window.plugins.gaPlugin;
}
alert("Plugin not found");
console.log('GA Plugin NOT found');
};

var initGA = function() {
//console.log('Initialize GA');
if (getGAPlugin()) {
getGAPlugin().init(gaSuccessHandler, gaErrorHandler, 'ournumber', 10);
}
};
/code


Google analytic plugin not found

Posted: Mon Aug 04, 2014 9:58 am
by Biteaa Me

Never mind, its working after I updated the versions external resources.

Cheers


Google analytic plugin not found

Posted: Mon Aug 04, 2014 11:38 am
by Maryna Brodina

Hello!

Thank you for update, glad it worked!


Google analytic plugin not found

Posted: Thu Feb 19, 2015 1:37 am
by Frank7390035

Hello,

I have the same problem, but was not able to resolve it by updating the external resources.

Tracking works on Android, but not on IOS. On IOS the app fails here and returns plugin not found.

var getGAPlugin = function() {
if (window.plugins) {
return window.plugins.gaPlugin;
} else {
alert('GA Plugin not found');
}
};

Any help very appreciated!


Google analytic plugin not found

Posted: Thu Feb 19, 2015 7:41 am
by Evgene Karachevtsev

Hello Frank,

Unfortunately you can't add plugin for iOS in Appery.io, you should export your project to xCode and add plugin there.


Google analytic plugin not found

Posted: Wed Feb 25, 2015 10:34 pm
by James Whittaker

the link to the plugin github page from your tutorial here:

http://devcenter.appery.io/tutorials/...

which goes to the github page here :

https://github.com/phonegap-build/GAP...

which says it is for iOS and Android?

Also in the source view, the plug appears to be in the iOS project?

I have the same issue in that it does not work from iOS...

James


Google analytic plugin not found

Posted: Thu Feb 26, 2015 12:44 pm
by Maryna Brodina

Hello!

Yes, plugin for iOS and Android, but unfortunately adding plugins and its debug are outside the scope of our support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack http://appery.io/services/#Advisory_Pack.


Google analytic plugin not found

Posted: Thu Feb 26, 2015 3:10 pm
by James Whittaker

I assumed since you provide an explicit tutorial on how to add Google Analytics then it would be covered....


Google analytic plugin not found

Posted: Mon May 04, 2015 9:56 am
by Peter LPunkt

Hi there, your comment is from a while back, but i'll give it a shot...

I also tried the tut but i dont see any tracking results on google analytics page.

Could you tell me what resources you updated to get the plugin to work?

Cheers


Google analytic plugin not found

Posted: Fri Jun 12, 2015 5:38 am
by akokov

The same for me, please )