-
New Feature
-
Resolution: Fixed
-
Major
-
1.1
-
None
-
-
Empty show more show less
Google Analytics is used on many sites and is a almost de facto standard as a use case on sites.
STK should provide a easy possibility to activate/configure the Google Ananlytics.
As Google describes, the JS of GA should be placed at the very bottom before the body-end tag. See link below, point two:
http://www.google.com/support/googleanalytics/bin/answer.py?answer=55488&cbid=1th4gth8puw5m&src=cb&lev=answer
This shouldn't be a big problem to implement with JQuery, because the JS's get executed after the html structure is available.
Here i found a JS for JQuery which should work in STK, just added as a normal JS-node:
http://playground.ebiene.de/2148/google-analytics-mit-jquery/
The only static part of this JS is the '_gat._getTracker('UA-XXXXXXX-X');' which defines you GA uid.
So this should be implemented into STK:
- A way to define the 'UA-XXXXXXX-X' value over the site configuration and hand it to the JS.
- A option on page level, for excluding a page if it shouldn't be GA analyzed.
Some more info I found about the GA-Tracker and JQuery:
http://plugins.jquery.com/project/gaTracker
- is superseded by
-
MGNLGA-1 Initial implementation of Google Analytics
- Closed