Move thresholds into their own settings file, and add support for Google analytics tracking