Realm Mixpanel Analytics

Hello, we are working on a product which we wish to distribute as an SDK.

It appears that the only way to turn off Realm Mixpanel Analytics is to set a build time envrionment property “REALM_DISABLE_ANALYTICS”

Is there a way to do this at runtime, not build time?

Doing it at buildtime is problematic because;
We don’t want to ask our implementers to add environment values to their build because it’s
a) inconvenient for them
b) may cause compatibility issues
c) it may be forgetten and cause issues in which the environment the SDK is deployed

Thanks

Hi @MagnifcoSpecifico

REALM_DISABLE_ANALYTICS can be disabled by setting export REALM_DISABLE_ANALYTICS in the terminal. It is used at run time, not build time.

We only send analytics to Mixpanel when using the iOS simulator or on OS X if a debugger is attached.

This will never cause compatibility issues. A user is likely to not worry about our Mixpanel panel analytics if they set export REALM_DISABLE_ANALYTICS and forget about it.

1 Like

Thanks for the reply @Lee_Maguire.

We only send analytics to Mixpanel when using the iOS simulator or on OS X if a debugger is attached.

Ah this is really good to know. And export REALM_DISABLE_ANALYTICS makes sense in this context. I thought it was a runtime check irrespective of deployment location and I was surprised. Thank you for clarifying.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.