PDF Download tracing issue

Discussion in 'Google Analytics' started by tommseo, Aug 23, 2009.

  1. #1
    <a href="somefile.pdf" onClick="javascript: pageTracker._trackPageview('what should be placed here');">Download File</a>

    "What should be placed here" is this should be my pdf file name or can be anything like school pdf, tech pdf or any thing else.

    Do i need to include the extension there too, like school.pdf, tech.pdf

    Please reply.
     
    tommseo, Aug 23, 2009 IP
  2. dipali

    dipali Peon

    Messages:
    450
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    its really simple to track downloading of pdf files, just put below bold code in to your url


    <a href="somefile.pdf" onClick="javascript: pageTracker._trackPageview('/download/somepdf.pdf');">Download File</a>

    let me know still if you have any query,
     
    dipali, Sep 14, 2009 IP
  3. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #3
    camp185, Sep 15, 2009 IP
  4. seolion

    seolion Active Member

    Messages:
    1,495
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Virtual page views can inflate your page view count.
    Event tracking is available on all accounts now, you can change the trackPageview call to _trackEvent call

    pageTracker._trackEvent("Downloads","PDF Downloads","File Name/Unique Identifier");

    Replace bolded portion above.
    Thoughts?
     
    seolion, Sep 16, 2009 IP