Google-analytics-plugin is not installing


#1

I am trying to add plugin using cordova plugin add https://github.com/danwilson/google-analytics-plugin.git but it is giving me following error:

Fetching plugin "https://github.com/danwilson/google-analytics-plugin.git" via g
it clone
Installing "cordova-plugin-google-analytics" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-google-analytics':TypeError: Uh oh!
Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:116:15)
    at module.exports.framework.install (C:\Users\rajul\AppData\Roaming\npm\node
_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:121:3
1)

Can anybody please tell me how to install this plugin?