2

If I have a universal Footer, include('footer.php'); on my page - will the google analytic's script I just put there be able to track my page views?

1 Answer 1

6

Google Analytics runs in the browser after the PHP has generated the page's HTML. So if you use a PHP include to include a common footer containing the Google Analytics code it will track the page view for all of those pages.

1
  • for all those (individual) pages right? That's pretty cool <3 google Sep 1, 2011 at 2:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.