search
Carter Cole LinkedInCarters Twitter PageCarter Cole on Facebook Carter Coles RSS

Tuesday, February 22, 2011

Easy pdf download event tracking with jQuery and Google Analytics

Quick tip:
One of the things we wanted to add was a generic script to track pdf downloads as events in GA so i wrote this real quick... ill probably add in some other flavors based on prototype or another library later but for now this is a quick and easy post to try and get me in the habit of publishing again



you can easily modify this to also look for powerpoint or txt file whatever... just change the extension in the jQuery selector



Do you have any cool Google Analytics scripts you use around your sites? Id love to hear about some other ideas for what to track

2 remarks:

Jean-François Monfette said...

Hi Carter,
There is an awesome tool out there called GaAddons that track pretty much anything you need to track.

You should check it out at http://www.gaaddons.com

It's free for regular users. Also, the developer is super accessible if you have any question.

Have a good day !

JF

Alfredo said...

hello.
Can it be used on the same place of the trackEvent?

Post a Comment

Link to this post if you found it usefull

Easy pdf download event tracking with jQuery and Google Analytics