Skip to main content
Question

Can Experiments be run for an offering that is not the default offering?

  • September 14, 2024
  • 1 reply
  • 23 views

Forum|alt.badge.img+3

In my app I don’t use the current offering.

if let firstPaywallOffer = offers["first_paywall_standart_offer"]{
                    self.firstPaywallPackages=firstPaywallOffer.availablePackages.map({$0.storeProduct})
                }

I am getting my paywall offering like this. In the documentation experiment’s just change the current offering. How can I use experiments feature in my app. Do I have to use the current offering? 

 if let coinOfferings = offers["first_coin_offerings"]{
                    self.coinPackages = coinOfferings.availablePackages.map({$0.storeProduct})
                }
                if let specialOfferOfferings = offers["special_offer_offering"]{
                    self.specialOfferPackages = specialOfferOfferings.availablePackages.map({$0.storeProduct})
                }

The reason I use hardcoded id is that there are 3 different paywalls in my application and one of them is non-subscription packages.

This post has been closed for comments

1 reply

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • September 18, 2024

Yes, you will need to use the current offering for Experiments to work. We determine what the “current” offer is per new user based on whether they’re in the control/experimental group.

 

You may want to look into something like offering overrides or Targeting to use the flexible current offering, but retain control over who sees which offering.


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