Adds some code to control the analytics tracking