Optimize your Google Analytics tracking
Tracking your website performance is fairly easy using Google Analytics. Just sign up for an account and implement the code snippet. You can do more!
Tip 1. Subdomain tracking
If you have multiple subdomains you must tell Google Analytics. You can configure that at the 'trackinginfo' tab.
All you have to do is switch it on and start filtering by subdomain (see the screenshot below).
Don't forget to add the new Google Analytics code snippet that is provided.
Tip 2. Site search tracking
If you offers site search, make sure you know what visitors search for. You can use this data to optimize your content. Go to your profile settings and enter the query parameter that you use in your website. This is probably something your Content Management System (CMS) provided by default. For example, Drupal uses the query parameter 'search' (see the screenshot below).
Tip 3. Click tracking
With default settings Google Analytics doesn't provide any data on click tracking. Google does provide you with some tools to track any kind of click (or all on-page clicks). Add this code to each link you want to track (example is for outbound link tracking):
_gaq.push(['_trackEvent', 'Outbound clicks' ,'http link']);
Please read my earlier blog on tracking outgoing links with Google Analytics.
Tip 4. Page speed tracking
Site speed is one of over 200 SEO signals used by Google to rank a page. By default Google doesn't provide any data on site speed. You can add the following code to the existing tracking code to measure page speed.
Now you are able to detect which code is slowing down your website.