Google Analytics will itself check to see that the tracking code has been installed correctly on the home page of your site – once you’ve created a new profile, the Tracking Status will display a warning, “Tracking status unknown,” until the system detects the code.
If you used a WYSIWYG (“What you see is what you get”) editor such as Macromedia Dreamweaver, make sure that you don’t see the code when you’re viewing your page in a browser. Some such editors will attempt to place the code as text on your page – try to use the “source” view when you’re pasting the code to your web pages.
Finally, once your page is live, select View Source from your browser’s menu and look for the code. It should be immediately before the </body> tag of your page, and should look exactly as it was provided to you:
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.“);
var pageTracker = _gat._getTracker(“UA-xxxxxx-x”);
You should see your own account number in place of the xxxx-x in the example above. If you need a fresh copy of your code, click the Edit link next to the appropriate profile on the Analytics Settings page, then select Check Status at the top-right of the table.
If your tracking code has been installed correctly, and you’re still not seeing any data after 24 hours, read I’m not seeing any data in my reports
You may also want to know about a free tool that a third-party developer named EpikOne created to help with the process. The tool is called SiteScan and can be found at www.SiteScanGA.com. You can sign up to have the tool crawl your site and check for implementation errors. Examples of errors could be pages that don’t have tracking code or pages that have both ga.js and urchin.js code on them (you shouldn’t run both on a single site). This is not a Google supported or developed tool, but many customers have found it useful.
For more details visit https://www.google.com/support/googleanalytics