Google Analytics and php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gabainc
    Sergeant First Class

    • May 2007
    • 56

    Google Analytics and php

    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
    Sergeant First Class

    • May 2007
    • 56

    #2
    Re: Google Analytics and php

    please let me know if i should of asked this question in a differnt threzad as i am new

    thanks

    Comment

    • Watdaflip
      Major General

      • Sep 2005
      • 2116

      #3
      Re: Google Analytics and php

      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");
      ?>

      Register/Login Script
      Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

      Comment

      • gabainc
        Sergeant First Class

        • May 2007
        • 56

        #4
        Re: Google Analytics and php

        thanks i just aded it to html box in the footer.php.

        Aaron

        Comment

        Working...
        X