Added analytics for pdf downloads