How To Add Analytics To A Php Document?

XcapeX

Madly Diligent
Joined
Jul 30, 2008
Messages
6,397
Reaction score
0
FP$
6
So for Google Analytics I get this:

2. Paste this code on your site
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.

How do I add the code to my website since it tells me to add that to an HTML document, yet vBulletin doesn't have one..it just says 'forum.php'
I know I need to get into the template..but where exactly do I go and what do I do?

Thanks
 
Add it to header template (not sure what's the exact name in VB).
 
Find where you want it in the php file as long as it doesn't break the code do

Code:
?> // Closes php code so can put html in
## ANALYTICS CODE HERE
<?php // Reopens php code to continue letting vb work :)

or just where appropriate
Code:
echo 'code here';
 
Back
Top Bottom