Skip to main content
Answer

Experiment test group in Amplitude?

  • July 23, 2021
  • 4 replies
  • 236 views

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.

This post has been closed for comments

4 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 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
  • 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
  • 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
  • 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 :)