moved analytics to own script