Fix non-working analytics