-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD support for Cordova google-analytics-plugin #259
Conversation
Add support for Cordova google-analytics-plugin
Excellent! |
If this is a new plugin, it also requires a new .nuspec file for the NuGet packaging |
@emaV can you add a nuspec file for this plugin? |
Would be nice if this was noted in the documentation somewhere - anyway, thanks for this! |
The dependency on GAPlugin is problematic because this plugin is no longer maintained and completely not functional as of July 2015: phonegap-build/GAPlugin#70 |
quanghoc - I think that's a different plugin than the one we're using. This is what we've got: https://github.com/LawnmowerIO/google-analytics-plugin . AFAIK still working |
Oh sorry ignore my comment then. |
OK I spent half a day trying google-analytics-plugin and it failed at BUILD. Basically depending on google playservices is a huge issue. At this point, nothing works: http://stackoverflow.com/questions/31332034/build-error-when-using-cordova-google-analytics-plugin Have you tried and if you have any suggestion? |
Use this fork https://github.com/t-nonque/google-analytics-plugin There is already an pull request danwilson/google-analytics-plugin#118 maybe if more test and confirm the functionality it gets merged in the official plugin. |
The build works now (But I guess because I did reinstalled entire environment). However, I cannot get anything tracked (realtime event). That's probably a different issue. grrr.. I do have |
I tried to use following fork: https://github.com/t-nonque/google-analytics-plugin by tracking Screen (i.e. window.analytics.trackView). |
Currently only the GAPlugin for Cordova/Phonegap (https://github.com/phonegap-build/GAPlugin) is supported (#60 thanks to @mlegenhausen).
This plugin provides an integration of the google-analytics-plugin for Cordova/Phonegap: https://github.com/danwilson/google-analytics-plugin
Usage example:
Before you can start using you need to install the google-analytics-plugin for your platform. The instructions can be found on the homepage.
Then add the plugin file to your index.html file:
Now add the module to your app configuration.
Then configure the plugin via:
That's it you now have mobile google analytics running in your app.
Feedback is welcome!