hopefully fixed the analytics code