analytics and css/json cleanup