vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   google analytics + archive questions (https://vborg.vbsupport.ru/showthread.php?t=107967)

David_R 02-14-2006 02:47 PM

google analytics + archive questions
 
hi,

Where should i place the google analytics code as follows in:
Code:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-*****-*";
urchinTracker();
</script>

1. Vbulletin Archive
2. vB Easy Archive - Search Engine Spiderable Hack from Xenon

thanks.

Reeve of shinra 02-14-2006 03:05 PM

In the default vbulletin archive, add a new plugin using the archive header start and add in this:

HTML Code:

?>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-*****-*";
urchinTracker();
</script>

<?php

Not sure about the other one.

David_R 02-14-2006 09:11 PM

did you meant to add a new plugin to this page:
admincp/plugin.php?do=add ??

what should i select under hook location, sorry for being lame i have not read complete information about vb yet :(

thanks for helping.

Reeve of shinra 02-14-2006 09:28 PM

yep thats the place. The hook location should be called something like archive header start or something close to it. Im at work and wont be home for a few hours but let me know if you cant find it or have problems :)

David_R 02-21-2006 06:35 PM

Quote:

Originally Posted by Reeve of shinra
yep thats the place. The hook location should be called something like archive header start or something close to it. Im at work and wont be home for a few hours but let me know if you cant find it or have problems :)

THANKS man, i just added the same above the </body> tag under <div> elements.

styleforum 05-19-2007 07:45 PM

Could someone explain this a little more step-by-step? I'm trying to figure out how to do this. Surprised more people aren't wondering the same thing.

Dismounted 05-20-2007 04:38 AM

Plugins & Products > Add New Plugin > Hook Location: archive_header_start > Paste code as above.

firstrebel 05-20-2007 06:47 AM

Does the code put into the footer template not work for the archive?

Bob

Dismounted 05-20-2007 07:09 AM

It probably does, but I don't know why Reeve of shinra instructed to do it using plugins. I was assuming it wouldn't work the other way.

firstrebel 05-20-2007 08:06 AM

I just looked at the page source in the Archive and the Google script was not there, so this suggests putting it in the footer template does not cover the archives.

I have not tried using it as a plugin yet and removing the code from the footer. Can anyone clear this up please?

Bob


All times are GMT. The time now is 05:26 AM.

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.01161 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete