PDA

View Full Version : Need Help installing Google analytics HTML into VB


FordMustang
03-23-2010, 12:46 PM
I want to add Google Analytics tracking to our site http://forum.legendaryfordmagazine.com/forums.php

We're running VB 3.8

Where would the html need to be installed to do general site tracking.

We are producing an online magazine and are about to start selling banner ads and so would-be advertisers are asking about "hits". A friend told me that the Google program would be very useful for this.

I've set up the account on Google and have the html info to install, but don't know where to put it (or how to) in VB. Any idears?

Jeff

Speysider
03-23-2010, 01:02 PM
The tracking code goes in the forumhome, forumdisplay, and showthread page templates right above the </body> tag at the end.

You can place said code anywhere on your templates.

FordMustang
03-23-2010, 01:22 PM
Thanks ford the fast reply!

Jeff

--------------- Added 1269355459 at 1269355459 ---------------

Thanks Spey, we'll see how it works! Appreciate your help!


Jeff

kall
03-23-2010, 04:36 PM
Why not just put it in footer?

(I didn't see any edits, so if you had asked "How do I add Analytics to only track views to ForumHome, Showthread and Forumdisplay?", I missed it.)

Doing what has been suggested will only track views to those pages. You probably have lots of other pages that you might want to track.

*edit* Yeah. You want to show total hits to your entire site, and you have been told to implement tracking on a portion of your site. If you want to show hits to all parts, add to footer.

Speysider
03-23-2010, 04:56 PM
Why not just put it in footer?

(I didn't see any edits, so if you had asked "How do I add Analytics to only track views to ForumHome, Showthread and Forumdisplay?", I missed it.)

Doing what has been suggested will only track views to those pages. You probably have lots of other pages that you might want to track.

*edit* Yeah. You want to show total hits to your entire site, and you have been told to implement tracking on a portion of your site. If you want to show hits to all parts, add to footer.

He didn't mention what pages he wanted so I just suggested those three for him.
Adding it in the footer doesn't help imo. Google tells you to put it above the </body> tag, which doesn't count as the footer.

If you wanted to help, you should have posted before me.

FordMustang
03-23-2010, 05:16 PM
Woah,
I appreciate both of you doing what you've done so far! :up:

Spey, why would it be that The Analytics would not show users coming in since installation ( the Analytics software give me a checkmark in the ? If they hit the forum main page (http://forum.legendaryfordmagazine.com/forums.php) wouldn't they register as a "hit" to the main page?

Also, I have a cmps page (http://forum.legendaryfordmagazine.com). That is actually the page that Analytics has as the "website profile". Where would I need to put the info if I wanted it to look at the http://forum.legendaryfordmagazine.com/forums.php page for visitor hits? Most of my regulars never hit the main page.

Any help here would be greatly appreciated.

JEff

kall
03-23-2010, 05:56 PM
If you wanted to help, you should have posted before me.
Unfortunately I haven't yet mastered replying to threads I haven't yet seen whilst I am sleeping, so you'll have to forgive me.

A question, seeing as you are so knowledgeable on these things - how does following your suggestion allow people to utilise the Registration Funnel?

Also, it doesn't HAVE to be DIRECTLY before the </body> tag. Check the source of any of the sites in my sig. All track perfectly fine without it being exactly there.

Honestly, you give advice that's close to being correct, all over the place, but it's not quite right.

FordMustang
03-23-2010, 06:20 PM
Ummm, hello?

:erm:Can we get back on track here? I need help. :D

Speysider
03-23-2010, 06:21 PM
Spey, why would it be that The Analytics would not show users coming in since installation ( the Analytics software give me a checkmark in the ? If they hit the forum main page (http://forum.legendaryfordmagazine.com/forums.php) wouldn't they register as a "hit" to the main page?
I'm not sure of what you require here. PM me and I can go through this further.

Also, I have a cmps page (http://forum.legendaryfordmagazine.com). That is actually the page that Analytics has as the "website profile". Where would I need to put the info if I wanted it to look at the http://forum.legendaryfordmagazine.com/forums.php page for visitor hits? Most of my regulars never hit the main page.
For the CMPS page, just add it to the adv_portal template, above </body>


A question, seeing as you are so knowledgeable on these things - how does following your suggestion allow people to utilise the Registration Funnel?
I only just give users the simple code edits for forumhome, forumdisplay and showthread. If they want it on other pages, they just have to add the code in the needed template.

Also, it doesn't HAVE to be DIRECTLY before the </body> tag. Check the source of any of the sites in my sig. All track perfectly fine without it being exactly there.
That's what Analytics said. Go read it if you don't believe me.

Honestly, you give advice that's close to being correct, all over the place, but it's not quite right.
I do my best.

Try not to irritate me, some users know what happens if I'm irritated.