break analytics into separate file