Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2010, 12:46 PM
FordMustang FordMustang is offline
 
Join Date: Nov 2009
Location: Aiken, SC USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need Help installing Google analytics HTML into VB

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
Reply With Quote
  #2  
Old 03-23-2010, 01:02 PM
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
Posts: 1,029
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-23-2010, 01:22 PM
FordMustang FordMustang is offline
 
Join Date: Nov 2009
Location: Aiken, SC USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ford the fast reply!

Jeff

--------------- Added [DATE]1269355459[/DATE] at [TIME]1269355459[/TIME] ---------------

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


Jeff
Reply With Quote
  #4  
Old 03-23-2010, 04:36 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-23-2010, 04:56 PM
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
Posts: 1,029
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
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.
Reply With Quote
  #6  
Old 03-23-2010, 05:16 PM
FordMustang FordMustang is offline
 
Join Date: Nov 2009
Location: Aiken, SC USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-23-2010, 05:56 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Speysider View Post
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.
Reply With Quote
  #8  
Old 03-23-2010, 06:20 PM
FordMustang FordMustang is offline
 
Join Date: Nov 2009
Location: Aiken, SC USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummm, hello?

:erm:Can we get back on track here? I need help.
Reply With Quote
  #9  
Old 03-23-2010, 06:21 PM
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
Posts: 1,029
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FordMustang View Post
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.

Quote:
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>


Quote:
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.

Code:
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.

Quote:
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04251 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete