View Full Version : Google Analytics
Hershey
10-14-2007, 08:45 PM
I have a question for the vivvo team...
I used to have Google Analytics on my site when it was 3.5..
Now that the templating system has ben change to VTE (Vivvo Template Engine), I am not sure where to place the analytics code.
If placed anywhere above "</vte:template>" in the footer template file, it will always be too high.....anything below that will obviously not work
unfortunately, the correct and ideal placement would be somewhere within the "</vte:template>".....that is however not practical at all...if possible at all.
Let's hope the vivvo team has a solution for this.
Thanks
p.s. how does one disable gravatar....it's causing page load problems since none of the users actually have gravatars. its becoming a nuisance since pages now take forever to load
berto
10-14-2007, 11:55 PM
I don't see a problem with having it just above the closing </vte:template>.
I have all my external scripts including Google analytics and all seems fine.
Regarding the gravatar just edit comments.tpl - Either remove the img code or change the path to a file on your server. I changed this aswell as it was also buggin me.
Find <img src="{comment.get_gravatar}" alt="avatar" />
Also forgot you have to also edit comment_tabs.tpl
utvara
10-16-2007, 09:34 AM
Quick not on JavaScript inclusion:
If an empty tag is given VTE will print it as self closing tag thus your <script src=""></script> becomes <script src="" />. This can mess up browser rendering and behavior, so use this instead <script src=""> </script> (notice the space).
Hershey
10-20-2007, 12:05 AM
utvara, i can tell you for certain for certain that the google analytics code isnt working....even though it's placed above the </vte:template> tag
even made sure to create space between the script tags
Hershey
10-20-2007, 01:12 AM
I want to also be able to edit the title order...but aparently, the header.tpl file has no option for seo work..so i cant edit the meta tags and description from there....although i know there is an option in admin. i specifically want to edit the order of the title displayed...b/c for instance when looking at cached pages on google...the title for every single page looks exactly the same...i wanted to change the order so that the title of a given article or category would be displayed first in order
berto
10-21-2007, 12:43 AM
I want to also be able to edit the title order...but aparently, the header.tpl file has no option for seo work..so i cant edit the meta tags and description from there....although i know there is an option in admin. i specifically want to edit the order of the title displayed...b/c for instance when looking at cached pages on google...the title for every single page looks exactly the same...i wanted to change the order so that the title of a given article or category would be displayed first in order
Have you tried looking at your html_header.tpl? You can do this there :)
Hershey what exactly is the problem with the Google analytics code? Is in not tracking?
Hershey
10-21-2007, 04:56 AM
Have you tried looking at your html_header.tpl? You can do this there :)
Hershey what exactly is the problem with the Google analytics code? Is in not tracking?
well yeah it's not tracking...
i gotta say i don't really like this new vivvo template engine....messes up a lotta things.
i just tried placing google ads and even that won't display (i did remember 2 have an empty space between the script tags)
thnx for the help with the header though...i hadn't seen that one before.
Hershey
10-21-2007, 07:28 AM
alright...i figured it out.
my mistake was being lazy....or too convenienced by the vivvo team rather lol
its best not to use the template editor in the admin panel for making such modifications.....
it seems once i used TextPad to fix it, everything went smoothly, and i guess to be honest, its faster that way too...since no template reload is required after every minor change
berto
10-21-2007, 11:27 AM
:D You'll get the hang of it, VTE is actually really cool.
rbmcky
11-09-2007, 05:47 PM
Im still having problems with the Google Analytics code. Everytime I place it, it adds a bar on top of my home page with Google Analytics data (google generated). Not sure where to place the code still. Please help.
goshen
11-09-2007, 07:57 PM
Same problem here .. :confused: I can`t add Google Analystics to my page .. not to single page/article .. i try to add <script> code to -box>header.tpl
i try this:
1 .. add directly Google Analystic code (Java Script) to header.tpl - not work
2. add Google Analystic code (Java Script) between <vte:template> </vte:template> in header.tpl - not work
3. create mycounter.php and including Google Analystic code (Java Script) in this file and place in header.tpl - <vte:include href="http://www.mysite.com/mycounter.php" /> - not work
4. in mycounter.php add <vte:template> </vte:template> tags before and after Google Analystic code (Java Script) - again not work ..
:confused:
How to track my site visitors with Google Analystic ?? :D
I think that header.tpl is included to ALL my pages and this code must be placed there .. PLEASE HELP ME to solve this problem !
Thank you in advance !!!
berto
11-09-2007, 10:07 PM
Where exactly are you pasting the code?
goshen
11-09-2007, 10:36 PM
Where exactly are you pasting the code?
Yes .. try with any of your sites .. i can`t understand where is the my problem :confused::D:eek:
berto
11-10-2007, 12:19 PM
No try adding your google code on your FOOTER.tpl - works wonders for me.
Add it just above </vte:template> at the bottom.
Also use notepad to add the code as people have had problems adding the google analytics code using the vivvo template editor.
:cool:
apocan
11-10-2007, 01:06 PM
http://img132.imageshack.us/img132/711/reklamju9.jpg
it works in my site. no problem:)
goshen
11-11-2007, 08:58 AM
THANK YOU !! This work !! :D
mandini76
05-13-2008, 12:31 PM
It doesn't work on my site :-( It is being stripped out apparently. Any ideas?
mandini76
05-14-2008, 06:57 AM
update: I tried it in the footer as plain javascript, I tried to create a new zone with the code in it using banner manager. I added parse off , etc. I tried adding it to the header and the header wouldn't load at all. I tried putting it in its own div.
I did this all using a text editor.
NOTHING works. Every single time it gets stripped out.
dave25
05-14-2008, 02:49 PM
Go to templates, Box, and then choose "footer" box
Put the code just before the line "</vte:template>" (its the last line, put it before that)
mandini76
05-14-2008, 09:54 PM
Dave, I tried that also. It does not work. The vivvo engine strips it from the output of the site no matter where or how I put it into the footer.
I've sent in a request ticket and I will post here whenever we find a solution.
Ksenija
05-15-2008, 09:00 AM
The JS code was stripped because it was placed below the invalid code (closing tag was missing).
mandini76
05-15-2008, 09:11 AM
Thanks Ksenija. I was just coming on to here to post that you had found the solution.
In my footer, I had a copyright statement that did not have the closing P tag, which I thought was optional. I won't forget it again!
lidija
05-20-2008, 08:49 AM
Can I run Google Analytics together with Statcounter?
Statcounter is working fine, but theproblem is with Google Analytics.
here is how I'm doing it:
<!-- Start of StatCounter Code -->
<script type="text/javascript">
sc_project=2512836;
sc_invisible=1;
sc_partition=24;
sc_security="89cc580a";
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"> </script><noscript><div class="statcounter"><a href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c25.statcounter.com/2512836/0/89cc580a/1/" alt="website metrics" ></a></div></noscript>
<!-- End of StatCounter Code -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script>
<script type="text/javascript">
_uacct = "UA-XXXXXX-3";
urchinTracker();
</script>
</vte:template>
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.