<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.
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,
I have a brief example of how to set up a goal like that here: http://www.bestwebimage.com/archives/google-analytic-goals-and-feedburner-smith/ It's about half way down.
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?