[xwiki-users] Google Analytics
Hi all, how can I embed the Google Analytics code in XWiki? Thanks, Vito
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value. -- Sergiu Dumitriu http://purl.org/net/sergiu/
And what about a wiki-farm? My problem is that I have to use this for one wiki in our wiki-farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm. Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki. Vito Sergiu Dumitriu wrote:
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm
All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value.
You need to create a skin in your wiki and override the analytics.vm template. Check out the skin guide on xwiki.org Ludovic Vitantonio Messa a écrit :
And what about a wiki-farm?
My problem is that I have to use this for one wiki in our wiki-farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm.
Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki.
Vito
Sergiu Dumitriu wrote:
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm
All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Sorry you don't even need to override anaytics.vm, you can copy the google analytics code snippet into header.vm or footer.vm which is already present as a field in skins Ludovic Ludovic Dubost a écrit :
You need to create a skin in your wiki and override the analytics.vm template. Check out the skin guide on xwiki.org
Ludovic
Vitantonio Messa a écrit :
And what about a wiki-farm?
My problem is that I have to use this for one wiki in our wiki-farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm.
Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki.
Vito
Sergiu Dumitriu wrote:
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm
All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Thanks for your answer, I was wondering if it is possible to embed that code only in a page (since we only want to count visit on some pages, not all over the wiki). I'll try to embed the code in the page and see if it works, otherwise I'll go for the "skin solution". Vito Ludovic Dubost wrote:
Sorry you don't even need to override anaytics.vm, you can copy the google analytics code snippet into header.vm or footer.vm which is already present as a field in skins
Ludovic
Ludovic Dubost a écrit :
You need to create a skin in your wiki and override the analytics.vm template. Check out the skin guide on xwiki.org
Ludovic
Vitantonio Messa a écrit :
And what about a wiki-farm?
My problem is that I have to use this for one wiki in our wiki-farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm.
Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki.
Vito
Sergiu Dumitriu wrote:
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm
All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
My Footer has #if($context.getMode()==0) .... # End I tried to paste the google script after the #end... It does not show in my browser when I view the HTML code I tried to paste it before the #End code I get nasty error code after saving (so I quickly removed it) Any suggestions Gerritjan On 29 apr 2009, at 00:10, Ludovic Dubost wrote:
Sorry you don't even need to override anaytics.vm, you can copy the google analytics code snippet into header.vm or footer.vm which is already present as a field in skins
Ludovic
Ludovic Dubost a écrit :
You need to create a skin in your wiki and override the analytics.vm template. Check out the skin guide on xwiki.org
Ludovic
Vitantonio Messa a écrit :
And what about a wiki-farm?
My problem is that I have to use this for one wiki in our wiki- farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm.
Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki.
Vito
Sergiu Dumitriu wrote:
Vitantonio Messa wrote:
Hi all,
how can I embed the Google Analytics code in XWiki? Thanks,
Check out templates/analytics.vm
All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Gerritjan Koekkoek wrote:
My Footer has #if($context.getMode()==0) .... # End I tried to paste the google script after the #end... It does not show in my browser when I view the HTML code
I tried to paste it before the #End code I get nasty error code after saving (so I quickly removed it)
Any suggestions
Try pasting it before the #if, at the start of the field. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (4)
-
Gerritjan Koekkoek -
Ludovic Dubost -
Sergiu Dumitriu -
Vitantonio Messa