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
>>>
>>>       
>>
>>
>>   
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to