The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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> 2. vB Easy Archive - Search Engine Spiderable Hack from Xenon thanks. |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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
|
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
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.
|
#7
|
||||
|
||||
Plugins & Products > Add New Plugin > Hook Location: archive_header_start > Paste code as above.
|
#8
|
||||
|
||||
Does the code put into the footer template not work for the archive?
Bob |
#9
|
||||
|
||||
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.
|
#10
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|