added analytics back in