I have a doubt in installing tracking code from Google analytics.I got the code from google analytics. Should i insert the code to everypage ? or can i install the code only for index page ..? I need full tracking , Can anyone help me ....?
If all pages are static u have to add it in all pages. Any how add the script in a HTML page then include it in all pages using file include html code, if dynamic make one commen footer and include it in the main template
This Google Forum thread may guide you. Basically the ga code should be installed above the </body> tag on every page you want to track. Yes, you can do it with one include footer file. Advanced Implementations Include: - Sites that span multiple domains - Tracking Offline Advertising - Tracking Phone Calls - Links, downloads or special page elements you want tracked - Does your site allow for java script - Are there ‘frames’ being used - Ecom website what software is used
If your site developed using php, add tracking codes in a common file, i.e. in header or footer. If every page is individual, then you've to ad tracking code in every pages. Get the common page that is used in all pages, add codes to that common page. If u're using template, add codes to the template. You can paste tracking codes in a blank file (e.g. tc.html), then include this file in other pages. Its easier than writing codes several times.