Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding Google Analytics to your Board Details »»
Adding Google Analytics to your Board
Version: 1.00, by TheBlackPoet TheBlackPoet is offline
Developer Last Online: Aug 2008 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.0 Rating:
Released: 05-02-2008 Last Update: Never Installs: 101
Template Edits
Re-useable Code Translations  
No support by the author.

What is Google Analytics?

Google Analytics (abbreviated GA) is a free service offered by Google that generates detailed statistics about the visitors to a website. Its main highlight is that a webmaster can optimize AdWords advertisement and marketing campaigns through the use of GA's analysis of where the visitors came from, how long they stayed on the website and their geographical position. {http://en.wikipedia.org/wiki/Google_Analytics}

Why is Analytics Important?
If you (the Board Owner) want to know what is really happening on your site and how best to optimize it to increase visitors and participation and hopefully...... get a conversion.... (make money).... then GA is an important tool for you...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 08-19-2008, 09:54 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think what the Original Poster is stressing is:

you have 3 parts to your webpage.

Some stay the same some vary.

Header
Body/Main
Footer

Header and Footer are called via template on every page.

So as a page loads.

Header.... then body...then footer

If the Analytics code is within the footer, then its the last thing to load. Therefore it only replicates/analyses the simplest of information, and therefore essentially becomes a click counter.

Because it is not effectively tracking site activity on a page by page content by content basis.

However if the Analytics code is within the body.

The most important information ( main/body content ) is loading with the anlaytics code.
Thus giving more comprehensive results on page activity/content activity.

http://www.googlecommunity.com/forum...tml#post119529

Seems must be before </body> tag

I wont use this code, as we have other analysis, but I think the OP has it right.

Just my opinion of course.

Ozzy
Reply With Quote
  #33  
Old 09-08-2008, 06:38 PM
Brad Jones Brad Jones is offline
 
Join Date: Feb 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheBlackPoet View Post
in order for analytics to work it has to be in a part of the site that is unique from other pages... the body pages are unique. when you put the code in the footer .. you are not getting the results such as site overlay, landing page, bounce rates.., etc....
I'd be pretty excited if I was wrong, so that I would have even more data to peruse, but I have the requisite GA code in my footer template, and I have data on all that you described. Have you actually tried it in the footer template and found a difference between that and placing it on each page before the </body> tag?
Reply With Quote
  #34  
Old 09-11-2008, 09:39 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

google code has to between the head tags ,
i advice to search for <head>
and replace with
<head> + ur google code .
Reply With Quote
  #35  
Old 09-11-2008, 11:49 PM
Brad Jones Brad Jones is offline
 
Join Date: Feb 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by imiviortal View Post
google code has to between the head tags ,
i advice to search for <head>
and replace with
<head> + ur google code .
Which is why Google suggests you put it right before the </body> element?
Reply With Quote
  #36  
Old 12-11-2008, 06:59 PM
samiro's Avatar
samiro samiro is offline
 
Join Date: Jan 2007
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can just put the code in the footer template ...
so simple !
Reply With Quote
  #37  
Old 12-18-2008, 05:24 AM
bbcentral's Avatar
bbcentral bbcentral is offline
 
Join Date: Apr 2006
Location: Australia
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been using the code in the footer of 2 forums and a regular website, and I have always seen plenty of data come through. It's always accurate too.

I haven't ever had any problems with it.

If Google was having incorrect data come through, by now they would have changed the instructions, but it still says to always add the code immediately before the /BODY tag.

I trust Google with their thousands of happy customers over some guy from Texas.
Reply With Quote
  #38  
Old 12-18-2008, 11:12 AM
jdebler jdebler is offline
 
Join Date: Sep 2002
Location: Detroit
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That guy in Texas knows exactly what he is talking about, especially in post #4. His advice there doesn't apply to everyone, and putting it in the footer works for what most people need it for, but he definitely isn't wrong.
Reply With Quote
  #39  
Old 12-18-2008, 12:02 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the argument about? Google suggests putting it right before the </body> tag. You don't have to, but that's what they suggest...
Reply With Quote
  #40  
Old 12-19-2008, 10:23 PM
bbcentral's Avatar
bbcentral bbcentral is offline
 
Join Date: Apr 2006
Location: Australia
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jdebler View Post
That guy in Texas knows exactly what he is talking about, especially in post #4. His advice there doesn't apply to everyone, and putting it in the footer works for what most people need it for, but he definitely isn't wrong.
With all due respect, he's completely wrong and hasn't got a clue what he's talking about. Maybe his knowledge comes from some different software package, or maybe he's used to some ancient version of Urchin before Google took over. I've spent considerable time using Analytics, I've read most of their documentation and successfully implemented it into several of my own forums and websites.

Fact #1: Analytics is supposed to track every page on your forum
Fact #2: Analytics is clever enough to be able to work out what page the visitor is currently looking at
Fact #3: Analytics can track conversions without modifying the code or placing it on only some pages. For example, if I want to track how many people register, I setup a "Goal" for register.php. Whenever someone goes to that page and ends up completing the registration, it tracks that as a conversion.

And here's Google's official documentation about Goals and Funnels:
https://www.google.com/support/googl...n_US&utm_id=ad

And here's the documentation about Goals on dynamically generated pages:
https://www.google.com/support/googl...14&ctx=sibling

You'll notice that you configure everything through the Analytics website, not once does Google ask you to change your code. You use regular expressions, head or exact matches based on the URL of the page.

Google does all the work for you, so the correct instructions for this mod should be:
  1. Open your footer template
  2. Find </body>
  3. Paste the code just before </body>
  4. Save the template

If you don't believe me, try it out for yourself.
Reply With Quote
  #41  
Old 12-20-2008, 04:11 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I challenge you to find </body> in the footer (on a default style anyway).
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 11:09 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.04691 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete