moved analytics into html