![]() |
Google Analytics Code Plugin
This is my first plugin mod so its beta. :D
Purpose: The purpose of this is to make it easy to add or remove your Google Analytics code or similar footer code in your vBulletin 'footer' template. This is helpful when you need to revert your footer template and want to add back your google analytics or similar footer code with ease, or quickly update the extra footer code without having to enter your admin control panel ('ACP'). Steps: I broke the steps down into 3 easy parts. Part 1 * - Create a folder titled custom_plugins in your forum folder; * - In this folder, create a file titled index.html and add some text, like 'Blank' or a period '.' for example; * - Create a file titled footercode.html and paste your Google Analytics code in it; * - Login to your vBulletin ACP Part 2 * - Go into your 'Style Manager' under the 'Styles & Templates' menu; * - Click the 'Go' button next to your top-level style * - Scroll down and double-click on the 'footer' template; * - Scroll to the bottom of the selected 'footer' template and enter '$footercode' as the last piece of code; * - Repeat Part 2 for all styles whose 'footer' templates have been modified or whose 'footer' template is not inherited by the top-level 'footer' template modified above(most people will only have one top-level 'footer' template inherited by all subsidiary styles); Part 3 * - Create a new plugin by looking for 'Add New Plugin' under the 'Plugins & Products' menu; * - Select 'vBulletin' for the Product; * - Select 'global_start' for the Hook Location; * - Enter a title. I used 'Footer Code'; * - Insert the following code in the PHP field: PHP Code:
Feel free to comment or critique. Support will be provided on vBulletin Domain Architects |
If i hadn't just installed vbseo i would defo be installing this for ease of use.
|
i belive i saw a similar hack her somewhere ....
anyway thanks for shareing |
[high]* projectego clicks install :D[/high]
|
Nice release, although this comes with vBSEO already for those who are running the product.
|
Quote:
|
Thank you guys. I run vBSEO on one site but I wanted a plugin for my new vB sites that I am too cheap to pay for vBSEO on. This is a free and easy mod :) so I thought I would share it.
|
Quote:
|
Thank you
|
i don't understand one thing, the $footercode must be placed after this (in the footer template)?
PHP Code:
PHP Code:
|
All times are GMT. The time now is 11:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|