add self-hosted analytics