On 06/07/2013 05:11 AM, Nargil Manon wrote:
Hello,
I have a problem to implement Google Analytics into my wiki.
I used the Google Analytics functionality in the administration section and I put the ID
number given by my Google Analytics account. It worked during a day and then nothing.
Do you know this problem and how it can be fixed ?
Thanks
It works by registering a JavaScriptExtension as being used "always on
this wiki", so you should automatically have something like this in the
HTML of any page:
<script type='text/javascript'
src='/xwiki/bin/jsx/XWiki/GoogleAnalyticsCode?language=en'
defer='defer'></script>
(depending on how you configured your URLs, the src might be different
at the start, e.g. it could start directly with /jsx/)
Check that it is present. If it isn't, open
/xwiki/bin/edit/XWiki/GoogleAnalyticsCode?editor=object&classname=XWiki.JavaScriptExtension&object=0
and make sure that the "Use this extension" value is set to "Always on
this wiki". If it is already, then you should restart the server
(Tomcat?). It shouldn't happen, but I've seen it misbehave once before.
--
Sergiu Dumitriu
http://purl.org/net/sergiu