Page 7 of 8

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

Posted: Tue Mar 08, 2016 5:46 am
by Evgene Karachevtsev

Hell,

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


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

Posted: Tue Mar 08, 2016 6:31 am
by MD_Apps

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.


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

Posted: Tue Mar 08, 2016 6:58 am
by MD_Apps

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);


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

Posted: Tue Mar 08, 2016 7:01 am
by MD_Apps

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

Posted: Wed Mar 09, 2016 7:25 pm
by Leonardo Valentin Zeferino

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?


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

Posted: Wed Mar 09, 2016 11:53 pm
by Leonardo Valentin Zeferino

I found the solution here: https://getsatisfaction.com/apperyio/...

You could insert in tutorial page.


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

Posted: Wed Mar 16, 2016 3:47 am
by MD_Apps

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?


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

Posted: Thu Mar 17, 2016 11:25 am
by Serhii Kulibaba

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


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

Posted: Mon May 16, 2016 7:22 am
by zaik

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.


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

Posted: Mon May 16, 2016 8:27 am
by Galyna Abramovych

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