Downloadalytics is a free PHP script that lets you easily track file downloads as events in Google Analytics.