GAPlugin with PhoneGap

23 views
Skip to first unread message

Sarah

unread,
Apr 15, 2015, 1:12:22 PM4/15/15
to phon...@googlegroups.com
Hello,

I am using the GAPlugin to track my app data via Google Analytics.

https://github.com/phonegap-build/GAPlugin

The problem is, I don't see any data. I figured I needed to wait a little while before data begins to show up but still - nothing. Even the "real time" section shows nothing.

This is what I've done:

1. $ cordova plugin add https://github.com/phonegap-build/GAPlugin.git
2. Added the following code in my deviceready function:

        window.plugins.gaPlugin.init(function(){
                                         alert('worked!');
                                        window.plugins.gaPlugin.trackEvent( function(){alert('TRACKED EVENT!');} , function(){alert('FAILED TO TRACK EVENT!');}, "Category", "Action", "Label", 10);
                                     },
                                      function(){alert('FAILED!');},
                                     "ID GOES HERE",
                                     10);

When I run the app, I get all the alerts that shows it is working. However, no data in the GA dashboard

Can someone please tell me what I am doing wrong?

Thanks

Sarah

unread,
Apr 15, 2015, 4:08:32 PM4/15/15
to phon...@googlegroups.com
For anyone interested, I found the solution at the end of this thread:

https://groups.google.com/forum/#!searchin/phonegap/gaplugin/phonegap/Mtj6KoUk8cY/1oPJ-UEhpBIJ

Jesse Monroy

unread,
Apr 25, 2015, 10:21:56 PM4/25/15
to phon...@googlegroups.com
Sarah,
did you give up on the plugin?

TIA
Jesse
Reply all
Reply to author
Forward
0 new messages