hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Google analytics integration problem #424

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey there,

I've trying like crazy to integrate the Google analytics into my GWTP app.
I've tried many solutions including writing the JSNI code myself, using the 
GoogleAnalytics class provided in GWTP, and non seem to work, I can see the 
ga.js script loaded correctly and no exceptions are thrown when I call the 
_trackEvent method.

I tried creating a GWT (not GWTP) project via eclipse, and the integration 
worked like a charm!
But I can't seem to make it work in GWTP, (used the same code).

I'm using GWTP 0.6, GWT 2.4 and build my app with maven.
Thanks!

Original issue reported on code.google.com by tom.shap...@whitesourcesoftware.com on 5 Jun 2012 at 1:19

GoogleCodeExporter commented 9 years ago
What are you doing? Are you in dev mode from localhost?

The navigation tracker will block every call to GA when in dev mode while GA 
isn't supposed to record anything from localhost.

You can create your own tracker an see the call being made while GA won't send 
any response.

Also what are the functions that you are using? The JS api has changed a little 
bit and I know that there's some fix waiting to be merged.

Original comment by goudreau...@gmail.com on 9 Jul 2012 at 6:12

GoogleCodeExporter commented 9 years ago
When will the Google Analytics integration be fixed? And what I didn't get: is 
it actually required to include some Javascript files?

Original comment by fab...@gebert-hh.de on 15 Jul 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Is there any progress on this? If you give me some instructions on how to fix 
this, I'd volunteer to do so. Thanks a lot!

Original comment by fab...@gebert-hh.de on 16 Aug 2012 at 2:55

GoogleCodeExporter commented 9 years ago
Works fine for me with GWTP 0.6/0.7 and GWT 2.4/2.5-rc1.

You don't need to include any Javascript manually, GoogleAnalyticsImpl does 
that for you.

Original comment by kuhnro...@gmail.com on 17 Aug 2012 at 11:23