Tracking downloads

Permalink
I'm looking for an easy way to track downloads from my site (pdfs and zips primarily), I'd like more long term detail than the "latest downloads" graph in the default stats. Ideally I'd like to do this via google analytics, but i'm having trouble making that work.

I'm trying to use the script described here:http://www.blastam.com/blog/index.php/2013/03/how-to-track-download...

But I dont really know java scrip so I'm having trouble. I've dropped that script in the /js folder in concrete 5, then using the tracker option on settings attempted to add it to every page by adding

<scripts src="/js/downloadTracker.js" type="text/javascript"></script>


But that just broke my site. If anyone can offer help on installing this script, or some completely other way to implement this I'd really appreciate it.