fixed incorrect code in analytics page