+ Reply to Thread
Results 1 to 4 of 4

Thread: Google Analytics and php
      
   

  1. #1
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default 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

  2. #2
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default 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

  3. #3
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  4. #4
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default Re: Google Analytics and php

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

    Aaron

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49