HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank

Reply to topic Page 1 of 1
google analytics
Message  

Reply with quote
Post google analytics 
i am working on a static website which is hosted on linux and php and mysql. i am creating the html and css part of the website

all the pages in the website have a common section for example top portion has header links and bottom has footer links

so i thought it would be a good idea to have header.php and header.php that way any change that needs to be done can be done to these 2 files instead of changing all the files in the website

about the google analytics code after getting your response i want to add this google analytics code at the bottom of every page just before </body> tag this way each page's statistic details can be viewed by logging into google account


however since i want to have footer.php i want to include the footer links and then the google analytics code followed by </body></html> in footer.php

my question is if i were to do it this way, when google analytics javascript code which is only in 1 file footer.php though this file will be called in all other pages(about.php, services.php...) of the website as
include("footer.php");

will the analytics code still analyse traffic information for each and every page of the website(index.php, about.php, services.php ...)

please advice

thanks

View user's profile Send private message

Reply with quote
Post  
Yes it will - the code will be run for every page in which the footer.php is included.

View user's profile Send private message

Reply with quote
Post  
I agree with cheeseweasel.

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  




FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Web Hosting
Web Hosting and Dedicated Servers Advertise Here $10 a Month Designer Children
Insurance HGH Domain name registration
Affordable web-hosting Dedicated Server Management

Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com