Event tracking in Google Analytics

Discussion in 'Google Analytics' started by Abou, Jan 13, 2012.

  1. #1
    Hi,

    I have an issue with an event tracking on my website.

    In fact, I would like to track a Click action on a specific page.

    I use the asynchronous version of GA.

    I don't fully understand how I can implement this GA tag perfectly on the source code.

    If you can help me, it would be very nice.

    Thanks
     
    Abou, Jan 13, 2012 IP
  2. artemporio

    artemporio Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Set up tracking on your site. Make sure you have set up tracking for your website. For information on setting this up, see Tracking Sites.
    Call the _trackEvent() method in the source code of a page object, widget, or video.
    The specification for the _trackEvent() method is:
    _trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
    category (required)
    The name you supply for the group of objects you want to track.
    action (required)
    A string that is uniquely paired with each category, and commonly used to define the type of user interaction for the web object.
    label (optional)
    An optional string to provide additional dimensions to the event data.
    value (optional)
    An integer that you can use to provide numerical data about the user event.
    non-interaction (optional)
    A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation.
    View the reports. Once event tracking has been set up and working on your site for a day, go to the Content section of the reports and view Event Tracking.
     
    artemporio, Jan 22, 2012 IP