Remove plugins import from index.html based on CMackay comment: You should't have to import the analytics.js script. As long as you are including the cordova.js script and you used the 'cordova plugin add ' command to install the plugin, it should work.