Results 1 to 4 of 4

Thread: Google Analytics Event Tracking to Monitor Calls to Action

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Google Analytics Event Tracking to Monitor Calls to Action

    Hi,

    I would really like to be able to track clicks on call to action links using Google Analytics. like discussed here:

    http://www.seomoz.org/blog/google-an...alls-to-action

    Is it possible to add an onClick event to a link?

    Ta,

    Gary.

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Google Analytics Event Tracking to Monitor Calls to Acti

    Yes, use javascript. jQuery does it like $('a').onclick(function(){ /* do something */ });. I'm sure mootools has an equivalent. If you have that you can work it out into a more refined piece of code.

    If you'd like to add an onclick handler in the html, then be aware that "onClick" like it is written in your reference link won't validate in all dtd's but onclick (all lowercase) will in most of those that refuse onClick.

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: Google Analytics Event Tracking to Monitor Calls to Acti

    Thanks for the info once again Vera.

  4. #4
    New user
    Join Date
    06-11-09.
    Location
    Valence, France
    Posts
    21

    Default Re: Google Analytics Event Tracking to Monitor Calls to Acti

    On David Walsh blog there is an example on how track downloads : http://davidwalsh.name/track-file-downl ... s-mootools
    It's a good Mootools start script, with some mods you can track your events.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •