How to track my Event on Google analytics.

Discussion in 'Google Analytics' started by jaichamoli2008, Mar 20, 2013.

  1. #1
    Dear All,
    How to track event on Google analytic. i have page which is in PDF form. i want track that how may user clicked and download the PDF file.

    Also Suggest me for the event Track code.


    Thanks
     
    jaichamoli2008, Mar 20, 2013 IP
  2. webguys

    webguys Greenhorn

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    One easy way is on the download button make an onclick event that pushes to GA. For example onClick=_gaq.push(['_trackEvent', 'category name', 'action name', 'action label']);

    This is inside the <a href="path/to/pdf" onClick=stuff> or the <input type="submit" onClick=stuff > code, depending how you allow them to download.

    Cheers
     
    webguys, Mar 21, 2013 IP