Fix resource download event tracking js