I'm currently developing an app using PhoneGap and I wanted to integrate Google Analytics into it. After installing this plugin via the CLI, I inserted the following lines of code within my deviceReady
event:
analytics.startTrackerWithId('UA-*******-5');
analytics.trackView('Frontsite');
(Of course, I have replaced the asterisks with my actual tracking code).
Unfortunately, despite not receiving any errors, it seems like the app is not being tracked at all. Upon checking the mobile tracking property's realtime-tab on Google Analytics, I do not see any activity from my phone (or simulator) displayed.