5 Awesome Google Analytics Tips & Tricks

google-analytics

I love Google Analytics, I really do.  The only issue I have is that some of the information I want is not always easily obtained.  Say you add some external links to your site, wouldn’t it be nice to see how many people actually click them?  Or what if you want to segment your visitors based on the page’s they visit?  This is all possible with a few Google Analytics tips and tricks!

1.  Tracking FULL Referral URL’s

In order to set this up you will need to add the following to your Analytics profile.

Name:  Full Referrers
Type: Custom Filter – Advanced
Field A -> Extract A: Referral (.*)
Field B -> Extract B:
Output To -> Constructor: User Defined $A1
Field A Required: Y
Field B Required: N
Override Output Field: Y
Case Sensitive: N

2.  Track Downloads and Mail links

This is really helpful when you’re trying to figure out how many people are actually downloading your product or click your HTML mailto links.

Download Tracking Code:

<a href=”http://www.example.com/files/map.pdf” onClick=”javascript: pageTracker._trackPageview(’/downloads/map’); “>

Mailto Tracking Code:

<a href=”mailto:[email address]“onClick=”javascript:urchinTracker(’/mailto/bob’);”>[email address]</a>

3.  Tracking Outbound Links

This is one of my favorite!  Nothing like seeing what external links people are clicking.

<a href=”http://www.example.com” onClick=”javascript: pageTracker._trackPageview(’/outgoing/example.com’);”>

4.  Segmenting Site Visitors

Using the code below you can segment visitors by the pages they visit or actions they take.  This can be useful when determining if the pages on your site are helping or hurting your sales process.

<script type=”text/javascript”>pageTracker._setVar(’Marketing/PR’);</script>

5.  Track Exact Keywords from your AdWords Campaign

The keywords you see in Google Analytics (CPC) are not the actual keywords someone typed in the search box, they are simply the words that triggered your ad.  If you want to see the exact keywords, add the filters below to your Analytics profile.

Name: PPC Keywords 1
Type: Custom filter – Advanced
Field A -> Extract A: Referral > (?|&)(q|p)=([^&]*)
Field B -> Extract B: Campaign Medium > cpc|ppc
Output To -> Constructor: Custom Field 1 > $A3

Field A Required, Field B Required and Override Output Field need to be set to Yes.

Name: PPC Keywords 2
Type: Custom filter – Advanced
Field A -> Extract A: Custom Field 1 > (.*)
Field B -> Extract B: Campaign Term > (.*)
Output To -> Constructor: Campaign Term > $B1,($A1)
Well, there you have it!  Hope you find these Google Analytics tips helpful!

– Marko

Leave a Comment

3 Comments
  1. Reply

    WOW ! I had the same reaction as Jason Kirby. I always wondered how to tracking the full referral urls.

    Thanks for sharing this.

    • computer tricks
    • June 20, 2010
    Reply

    Woohoo… This post is precisely what I have been surfing for. What length of time did it take to compose this? Thank you a bucket load for this terrific advice.

  2. Reply

    Wow! I really did need to know this stuff but didn’t want to figure it out nor find out how to do it. Thanks Marko for making my life a lot easier

More from our blog

See all posts