Hell,
Please provide us with the information asked by Alena in the last comment.
Hell,
Please provide us with the information asked by Alena in the last comment.
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.
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);
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?
I found the solution here: https://getsatisfaction.com/apperyio/...
You could insert in tutorial page.
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?
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
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.
Since this is a duplicate question, I will move the further communication here if you don't mind: https://getsatisfaction.com/apperyio/...