Fixes for tracking file downloads in google analytics