adding cookie storage for analytics settings
removing extra console logging