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:

Post a Comment

Link to this post if you found it usefull

Easy pdf download event tracking with jQuery and Google Analytics