How Analytics impacts your website code

Google Analytics works by means of a small snippet of code that you include on your website pages. This code snippet activates Google Analytics tracking for your site, which collects and sends data to your Google Analytics account.

With the Google Analytics web tracking methods, you can use JavaScript that is designed to be highly compatible with your website code. These methods use the concept of namespacing, so that all functions reside under the _gat namespace. This means that all Analytics JavaScript methods that have a unique name will not duplicate or conflict with other JavaScript methods you might have on your site.

To set up Analytics for your site, see Setting up the web tracking code.