In version 1.0 of PhoneGap, they changed the plugin mechanism.
The old way to add plugins was part of PhoneGap.addConstructorthe javascript file for the plugin.
You will have something like
PhoneGap.addConstructor(function() {
PhoneGap.addPlugin('analytics', new Analytics());
PluginManager.addService("GoogleAnalyticsTracker", "com.phonegap.plugins.analytics.GoogleAnalyticsTracker");
});
However, in new versions you are now taking a step addServiceinside the file res/xml/plugins.xml.
, Google Analytics, - . , , , . , , PluginManager.addService(.....) analytics.js.