Skip to main content
Solved

Experiment test group in Amplitude?


Forum|alt.badge.img+5

When running an experiment https://docs.revenuecat.com/docs/experiments I can go into a user page and under “Current offering” see in what test group this user is. Could this data be shared to amplitude as well? So that I in amplitude can know what test group a user is in?

 

 

Best answer by sharif

Currently there’s no straightforward way to get this data into Amplitude as we don’t send which group a user is in. However, we do send the presented_offering_id field in Amplitude events, which you can use as a proxy for the user’s experiment group since RevenueCat changes which offering the user sees in an experiment. The thing to note here is that only new users are enrolled in experiments, so you probably want to filter for initial purchases that occur after the date of the start of the experiment.

View original
Did this post help you find an answer to your question?

4 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • Answer
  • July 23, 2021

Currently there’s no straightforward way to get this data into Amplitude as we don’t send which group a user is in. However, we do send the presented_offering_id field in Amplitude events, which you can use as a proxy for the user’s experiment group since RevenueCat changes which offering the user sees in an experiment. The thing to note here is that only new users are enrolled in experiments, so you probably want to filter for initial purchases that occur after the date of the start of the experiment.


Forum|alt.badge.img+5
  • Author
  • New Member
  • 3 replies
  • July 26, 2021

Sounds interesting! Will this presented_offering_id be set when the user just opens the app or will it only be set when they have actually seen the offer?


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • July 27, 2021

That field is set when a user makes a purchase of a product. So if the SDK loaded offering_123 and you presented it on the paywall and the user purchased a package that’s part of offering_123, the presented_offering_id will be set to offering_123. That lets you know which offering they saw (and thus, which experiment group they were in) when they purchased the package.


Forum|alt.badge.img+5
  • Author
  • New Member
  • 3 replies
  • August 5, 2021

Ok what I was looking for was a way for me to know for each user, even the ones that didn’t purchase, which test group they were in. So that I can compare the performance of the two different groups. Maybe a good idea for the future :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings