Best Way to Track a "Click" on Out Bound Link

Discussion in 'Google Analytics' started by tommy.crenshaw, May 5, 2010.

  1. #1
    I need to track and assign a monetary value to an action and am unsure the best way to proceed.

    The action:
    An out bound link.

    There is no .html or URL on our domain that could be used to track. It's a Calendar popup (think Booking a room) and they select the dates, then are immediately kicked out to a new site that handles the booking and the first part of the URL is always the same.

    Is Event Tracking in Analytics the way to go? Can someone point me in the right direction?

    Thanks!
     
    tommy.crenshaw, May 5, 2010 IP
  2. seolion

    seolion Active Member

    Messages:
    1,495
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    90
    #2
    You can use event tracking or virtual page view tracking.

    Add an onClick function call on the popup link, and call _trackEvent and _trackPageView GA function calls to do the job.
     
    seolion, May 7, 2010 IP
  3. clbyodo

    clbyodo Peon

    Messages:
    3,457
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use virtual page view tracking its esy to do than event tracking.
     
    clbyodo, May 7, 2010 IP
  4. zk5182

    zk5182 Active Member

    Messages:
    896
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    use go codes plugin if its on a blog
     
    zk5182, May 7, 2010 IP
  5. tommy.crenshaw

    tommy.crenshaw Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    So that will work even if Calendar.js houses the actual OBL?

    Not on a blog unfortunately.
     
    tommy.crenshaw, May 13, 2010 IP
  6. seolion

    seolion Active Member

    Messages:
    1,495
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    90
    #6
    The event tracking or virtual page view tracking code is going to reside on the HTML page which has the popup link to calendar. So it doesn't make any difference where the calendar.js is hosted.
     
    seolion, May 18, 2010 IP
  7. davejonesbkk

    davejonesbkk Peon

    Messages:
    159
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I want to setup event tracking on a blog post on a site. I want to track how many people click the image that will accompany the post and also how many people view the post.

    This is the example google give for the code to use:

    <a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>

    So for my custom event if I were to change 'Video' (the category name) to 'blog post' and 'Play' (action name" to 'clicks' would that work?

    Also where exactly on the site would I insert this code?
     
    davejonesbkk, Jun 24, 2010 IP