« »
Jul 16
2008

We often have an email address that is scattered all over our website and we not only aim to track the number of clicks on this email but rather also track the pages that this email is posted at

In this blog we will go over very simple steps of how to achieve the above goal

1. Add the following java script code to the main header or to the template file default.aspx

2. Add a second set of JavaScript code inside every email tag

To view report:

  • Log into your Google analytics account (www.google.com/analytics)
  • Go to the Content section -> Top Content
  • Filter the list of URL’s to only addresses contain “email_click”

Also we can track the email clicks using the Goal section!

  • Go to: Profile Settings -> Conversion Goals and Funnel
  • Create a goal as described below

  • To view the data go to: Goals -> Goal Verification

Tags: ,

5 Responses to “Tracking E-mail Clicks across Multiple Pages”

  1. I was looking for email tracker code, I did for one of my client website, it is successful.

  2. Melanie says:

    Hi,
    This post looks to be exactly what I need, but I’m slightly confused about the “Create New Filter” part. What exactly will that do? Is it a necessary piece to get the e-mail tracking to work? I’m not sure what I would type in as the Filter Pattern. Also, does this form appear in the “Top Content” section of Analytics as well? I am not seeing a place to create a filter.

    Any help would be much appreciated!

    Thank you,
    Melanie

  3. lisa says:

    So is this ‘html’ ref just a parameter for tracking? /email_click.htm From what i understand, the only webpages that would need to employ the script are the ones that include the email address. But there is no physical html file called ‘email_click.html’?
    Thanks.

  4. Correct Lisa, the /email_click.htmt is just a virtual page and not a real page in your site.

    btw, I wrote this post back in 2008 and that was before Google introduced the Async code and the event tracker. I suggest that you use the following method instead to track email clicks:

    onclick=”_gaq.push(['_trackEvent', 'Email Clicks', 'Click', href.replace(/^mailto\:/i, '')])]);”

    So if your email click looks like this:
    lisa.berelson@umb.edu

    change it to:
    lisa.berelson@umb.edu

    Here is the event tracking results in the GA reports for the above example:
    - Event Category: Email
    - Event Action: Click
    - Event Label: lisa.berelson@umb.edu

    Please feel free to contact us if you feel manually tagging the email clicks is hard due to the number of emails that need to be tracked. We can discus with you an automated way to tag all the email tags in your site.

    Good luck,
    Allaedin

  5. Dennis says:

    Hi,

    Do you know if the IP filter that I have set up will filter out trackevent so if my client clicks on their own email for testing, it will not be counted in Analytics?

    Thanks,
    Dennis

    PS say hi to Feras for me.

Trackbacks

  1. How to Setup Goals in Google Analytics | Google Caffeine SEO

Leave a Reply