Event tracking in Blogger

Discussion in 'Google Analytics' started by makbradson, Feb 21, 2011.

  1. #1
    I have an blogger account and can i track event in blogger? if yes, how can we implement event tracking code into blogger to track event and What should be code for that?
     
    makbradson, Feb 21, 2011 IP
  2. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Depends on what event you are trying to track. If you want to track something like an external link click through, you can add this code in your anchor tag.

    Sample:
    
    <a href="http://www.some_domain" onClick="_gaq.push(['_trackEvent', 'EVENT_CATEGORY', 'EVENT_ACTION', 'EVENT_LABEL', 'EVENT_VALUE']);">some link</a>
    
    Code (markup):
    EVENT_LABEL and EVENT_VALUE are optional. You can replace EVENT_CATEGORY and EVENT_ACTION to something meaningful to you. For more information, you can refer to this article: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html
     
    imperialDirectory, Feb 25, 2011 IP