Biteaa Me
Posts: 0
Joined: Mon Aug 04, 2014 9:25 am

Google analytic plugin not found

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

Biteaa Me
Posts: 0
Joined: Mon Aug 04, 2014 9:25 am

Google analytic plugin not found

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

Cheers

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Google analytic plugin not found

Hello!

Thank you for update, glad it worked!

Frank7390035
Posts: 0
Joined: Thu Feb 19, 2015 1:37 am

Google analytic plugin not found

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!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Google analytic plugin not found

Hello Frank,

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

James Whittaker
Posts: 0
Joined: Tue Feb 17, 2015 2:14 pm

Google analytic plugin not found

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Google analytic plugin not found

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.

James Whittaker
Posts: 0
Joined: Tue Feb 17, 2015 2:14 pm

Google analytic plugin not found

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

Peter LPunkt
Posts: 0
Joined: Mon Jan 13, 2014 3:07 pm

Google analytic plugin not found

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

akokov
Posts: 0
Joined: Fri Aug 13, 2010 7:50 am

Google analytic plugin not found

The same for me, please )

Return to “Issues”