beautypg.com

Add tracking code to your website – Google Analytics Guide User Manual

Page 14

background image

14

14

Add Tracking Code to Your Website

A portion of code will appear that you’ll need to add to your website. This is the portion of the

process that you may want to work with your webmaster to implement. These instructions are

available in the Analytics help center for future reference.

To add the code to your website:

Copy and paste the code segment into the bottom of your HTML content, immediately
before the tag of each page you are planning to track

If you use a common include or template, you can enter it there

Your generated code will have your own Analytics ID (see the highlighted text above)

The tracking code provided to you is designed to work with most site setups. However, there are

a few scenarios that require small updates to the tracking code on each of your pages. If any of

the following apply to you, go to the Analytics Help Center (see page 43) and follow the instructions

to update your code before adding it to your pages:

If you need to track multiple domains (like a homepage and a secure store site)

If you need to track more than one subdirectory (or sites that are within your site linked to the
homepage)

The Analytics Help Center tells you how to set up your site for these situations.