Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

Hell,

Please provide us with the information asked by Alena in the last comment.

MD_Apps
Posts: 0
Joined: Tue Feb 09, 2016 3:16 am

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

Thank you for your response ...

Since I first ran into the issue (16 days ago), I have implemented a work-around. My app is not in a static state, therefore "sharing my app" will block my progress.

When I first tried the GA plugin, I used the example in the doc, (registered event on device ready, etc).
I just tried it again, using the exact same code, simply re-enabling the event (same page, same js code), and now I cannot reproduce the error.
Since the initial issue reported, was not a syntax error, I have to assume something has changed on the back-end between 16 days ago.

I will keep you posted on whether I find issues with the events making it to google, or experience this error again.

MD_Apps
Posts: 0
Joined: Tue Feb 09, 2016 3:16 am

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

ok - I think I found more useful info by constructing a page as in the documentation.

Testing in the Browser, seems to be broken in the way I described.
Testing the app via the hybrid app (running on IOS) is working ok.

Please verify you have tested via the Browser emulator?
See screenshot attached of error msg, when
I use Chrome Version 48.0.2564.116 (64-bit) - Could it be a browser environment (cookies) issue?

I assume the InitGA function only has to be called once, per the app run-time, and not per each screen on page-show, etc? The ga.js should be global scoped, and functions should therefore be available to all screens - (at least that is the behavior for my other JS code - ie. global scoped across all screens)

The error occurs, on an event, which I attached to a Button click event.
And executing JS : trackEvent("Goto", "Page", "Try", 1);

Leonardo Valentin Zeferino
Posts: 0
Joined: Fri May 29, 2015 2:07 pm

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

I'm having the same issue:
When I open the App in the browser, appears this error.
"Uncaught ReferenceError: GAPlugin is not defined"

Using in Appery.io Tester is perfect.

But now, how can I develop with this bug in browser?

MD_Apps
Posts: 0
Joined: Tue Feb 09, 2016 3:16 am

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

Thanks Leonardo for pointing out the workaround to the problem.

the point of browser simulation is rapid prototyping - no? yet this feature is not supported?

Appery team - Since the documentation really does not help in this case - is there a recommended way for testing the GA functionality, other than using native mode?

The idea behind abstraction for developing hybrid apps, is portability, and the ability to validate functionality inside the simulator (browser). Please let us know if that is not the case?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

Hello,

It is impossible to test it in the browser, because it uses cordova GAPlugin, which works only on the real device as well as others cordova plugins

zaik
Posts: 0
Joined: Wed Sep 09, 2015 7:15 am

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

I am using google analytics in my Ionic Ngular app.
trackEvent functionis working fine but my trackPage functinis not working.
getGAPlugin().trackPage(gaNativePluginResultHandler, gaNativePluginErrorHandler, pageName);

what to give in pageName to track the event.

I am currently giving string name there like index or dashboard but it is not showing any data on Google Analytics page.

What type of pageName should be give.

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

Google Analytics Tracking in IOS not working, and how to enable demoprhaic and interest tracking

Since this is a duplicate question, I will move the further communication here if you don't mind: https://getsatisfaction.com/apperyio/...

Return to “Issues”