PDA

View Full Version : Google Analytics and php



gabainc
05-18-2007, 05:37 AM
Hi all i was wondering if there is a way to put the google analytic code in my footer.php instead of adding it to all of my pages manually.

Will love to find a way

Thansk in advance to all who have an idea..

Aaron

gabainc
05-18-2007, 04:53 PM
please let me know if i should of asked this question in a differnt threzad as i am new

thanks

Watdaflip
05-18-2007, 08:34 PM
Im assuming that Google Analytics is just some Javascript code that you would add to any page, then yes you can add it to your footer.php and just use a php include at the bottom of each of your pages.

<?
include("footer.php");
?>

gabainc
05-18-2007, 08:54 PM
thanks i just aded it to html box in the footer.php.

Aaron