fixed broken analytics