Skip to main content
Solved

How do I exclude sandbox data from events being sent to an integrated 3rd party tool? (i.e., Mixpanel)

  • January 15, 2026
  • 1 reply
  • 16 views

Forum|alt.badge.img+5

Hi all, I have a question about RevenueCat-Mixpanel integration. 

Through this integration, we’re able to get purchase-related events such as rc_initial_purchase in our Mixpanel dashboard. However, all of our sandbox data are also included in these events, making our Mixpanel charts inaccurate for analysis.

So I’m wondering if there’s a way to exclude these sandbox events when being sent to 3rd party tools like Mixpanel.

Thanks!

Best answer by hussain

Hi ​@inout-4dd00c,

Thanks for reaching out. I’m happy to help.

At the moment, RevenueCat’s Mixpanel integration will send sandbox events as well as production events, and unlike some other supported integrations there isn’t a toggle to send production-only events.

As of now you can either:

  1. Create a separate RevenueCat project for DEV/TEST and connect it to a separate Mixpanel project/token. Your production app uses the PROD RevenueCat API key + PROD Mixpanel token, while test builds use the DEV/TEST keys/tokens, keeping analytics clean.
  2. Or since the Mixpanel integration events don’t include an explicit “sandbox vs production” property in the payload, you’ll typically need to filter in Mixpanel by your own markers (e.g., set a Mixpanel user/profile property like is_test_user=true in your app for sandbox testers, then exclude those users from charts). This should work well because RevenueCat events can align to the same Mixpanel distinct_id when you identify users consistently.

Hope this helps, let me know if you need help with anything else.

Best,

Hussain

 

1 reply

hussain
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • January 16, 2026

Hi ​@inout-4dd00c,

Thanks for reaching out. I’m happy to help.

At the moment, RevenueCat’s Mixpanel integration will send sandbox events as well as production events, and unlike some other supported integrations there isn’t a toggle to send production-only events.

As of now you can either:

  1. Create a separate RevenueCat project for DEV/TEST and connect it to a separate Mixpanel project/token. Your production app uses the PROD RevenueCat API key + PROD Mixpanel token, while test builds use the DEV/TEST keys/tokens, keeping analytics clean.
  2. Or since the Mixpanel integration events don’t include an explicit “sandbox vs production” property in the payload, you’ll typically need to filter in Mixpanel by your own markers (e.g., set a Mixpanel user/profile property like is_test_user=true in your app for sandbox testers, then exclude those users from charts). This should work well because RevenueCat events can align to the same Mixpanel distinct_id when you identify users consistently.

Hope this helps, let me know if you need help with anything else.

Best,

Hussain