moved analytics to plugin