add analytics correctly