Tweaking analytics code