Fast & Easy Paywalls with RevenueCat

Sean Allen www.youtube.com

Краткое содержание

В этом видео рассматривается новая функция RevenueCat - платные стены (paywalls), которые позволяют разработчикам легко создавать и настраивать платные подписки в своих приложениях. Основные ключевые моменты:

  • RevenueCat предлагает готовые шаблоны платных стен, которые можно легко настроить под свои нужды.
  • Также RevenueCat предоставляет "футер-вид" (footer view), который позволяет разработчикам создавать полностью кастомные платные стены с использованием SwiftUI.
  • Платные стены RevenueCat позволяют быстро вносить изменения на лету без необходимости повторной отправки приложения на App Store.
  • Можно проводить A/B-тестирование различных платных предложений и отслеживать их эффективность.
  • Платные стены RevenueCat интегрированы с InApp Purchases и подписками, что значительно упрощает реализацию этого функционала.

Введение в RevenueCat и платные стены

В начале видео автор рассказывает о новой функции RevenueCat - платных стенах (paywalls). Он объясняет, что RevenueCat предлагает готовые шаблоны платных стен, которые можно легко настроить под свои нужды. Также RevenueCat предоставляет "футер-вид" (footer view), который позволяет разработчикам создавать полностью кастомные платные стены с использованием SwiftUI.

Автор отмечает, что платные стены RevenueCat позволяют быстро вносить изменения на лету без необходимости повторной отправки приложения на App Store. Кроме того, можно проводить A/B-тестирование различных платных предложений и отслеживать их эффективность.

Что такое RevenueCat?

В этой части автор дает краткий обзор RevenueCat. RevenueCat - это SDK, который упрощает реализацию внутриприложенческих покупок и автоматически возобновляемых подписок. Он отмечает, что самостоятельная реализация этого функционала может быть очень сложной задачей, поэтому использование RevenueCat значительно упрощает этот процесс.

Начальная точка и контекст

Автор объясняет, что в этом видео он не будет рассматривать полный процесс настройки внутриприложенческих покупок и подписок. Вместо этого он сосредоточится на использовании платных стен RevenueCat, предполагая, что вы уже прошли все необходимые этапы настройки.

Предложения и платные стены

Автор переходит к объяснению концепции "предложений" (offerings) в RevenueCat. Предложение - это то, что вы предлагаете пользователям для покупки, например, годовая или ежемесячная подписка. Каждое предложение может иметь свою платную стену.

Автор объясняет, что можно проводить A/B-тестирование между различными предложениями, чтобы определить, какое из них лучше конвертируется.

Совет по A/B-тестированию

Автор рекомендует, чтобы при проведении A/B-тестирования вы изменяли только одну переменную, чтобы точно определить, что влияет на конверсию.

Полный пример платной стены - Редактор

Автор демонстрирует, как создать полноэкранную платную стену, используя готовые шаблоны RevenueCat. Он показывает, как настроить изображение, заголовок, подзаголовок, кнопку и ссылки на условия использования и политику конфиденциальности.

Полная платная стена - Реализация в Xcode

Автор показывает, как интегрировать полноэкранную платную стену в свое приложение на Xcode. Он объясняет, как использовать модификатор present(paywall:if:) для отображения платной стены.

Футер-вид - Редактор

Автор переходит к демонстрации "футер-вида" (footer view) RevenueCat. Этот вид позволяет разработчикам создавать полностью кастомные платные стены. Автор показывает, как настроить футер-вид с годовой и ежемесячной подписками.

Футер-вид - Сжатый вид

Автор объясняет, что футер-вид также может быть отображен в сжатом виде, что позволяет сэкономить место на экране, особенно если у вас много вариантов подписки.

Футер-вид - Реализация в Xcode

Автор показывает, как интегрировать футер-вид в свое приложение на Xcode. Он использует paywall(footer:) для отображения кастомной платной стены.

Эксперименты A/B-тестирования

Автор объясняет, как можно использовать RevenueCat для проведения A/B-тестирования различных платных предложений. Он показывает, как создать эксперимент на веб-сайте RevenueCat и отслеживать его результаты.

Метаданные предложений - Кастомизация

Наконец, автор демонстрирует, как можно использовать метаданные предложений в RevenueCat, чтобы динамически изменять содержимое платной стены, например, показывать или скрывать видео. Это позволяет проводить A/B-тестирование различных вариантов платной стены без необходимости обновления приложения.

Краткое содержание любого видео YouTube за секунды

Получайте такие пересказы для любого видео на своём языке в бесплатном приложении Summ.

Загрузите в App Store
Доступно в Google Play

Расшифровка

Полная расшифровка видео «Fast & Easy Paywalls with RevenueCat». Нажмите на таймкод, чтобы открыть видео с этого момента. Нужно другое видео? Воспользуйтесь генератором расшифровки YouTube.

0:00 Revenue cat just released pay walls and they take so much work off your plate as a developer you can customize one of their existing templates to get something pretty good-looking with relatively low effort or you can use what I consider to be the killer feature and that is the footer view this allows me to design and build whatever payall I want and then bring in their footo view to do all the dirty work and the business logic to display all the plans show the proper pricing and discounts and free trial offers and handle all the logic to actually make the purchase basically all the hard errone stuff Revenue cat handles and then I just get to have all the fun with the designs love it and here's what makes Revenue Cats Pay walls unique is they are built natively in Swift UI so you're going to get that Apple native looking feel for me that's a requirement for my app the idea of throwing a web view into my app just hurts my soul so yeah you're getting

0:47 native Swift UI code here which is nice aside from handling all the dirty work for you these remote pay walls allow you to quickly make changes from the back end without having to go through the whole app approval process on the App Store want to try out some different marketing texts want to change the color of the button or maybe you want to completely remove an entire section you can make all these changes from the back end on the Fly this also allows you to run a test between two pay walls so you can see which one is converting more users therefore making more money for your app this is a huge update from revenue cat they are sponsoring this video but it's a slick product and the footer viw has me genuinely excited and in this video I'm going to walk you through how you can use these pay walls in your app oh and real quick maybe you're watching this video and you have no idea what Revenue cat even is so let me give you a brief 30second overview Revenue cat is an SDK that handles all the code for your Ina purchases and auto renewable subscriptions if

1:35 you've ever tried to implement this yourself using storit you know it's a major pain there's tons of edge cases it's very easy to mess up and the last thing you want to mess up is when your customers pay you so the revenue cat SDK was created by developers whose entire life in business revolves around in purchases and subscription like they've seen it all so it's a good idea to trust them with this aspect of your app and if you have multiple platforms like iOS Android or the web it takes all the purchases from those platforms puts them on a central dashboard so you can see all of your purchase data in one place with all kinds of graphs and charts Etc if you want to learn more about Revenue cat check out their website and I'll link to a video I did all about them in the description before we start using these pay walls I have a quick disclaimer this video is not a start to finish inapp purchases setup tutorial this video is focused on Revenue Cats

2:20 Pay walls if I were to go through all the initial setup of your Ina purchases and App Store connect and the revenue cat website it would be 30 to 40 minutes into this video before I even got to pay walls so this video is starting at the point when pay walls would come into play but don't worry all that setup is covered in amazing detail in Revenue cats documentation they walk you through step by step not to mention there's a ton of YouTube tutorials out there all about setting up inap purchases and revenue cap so I'm not covering all that setup but here's where I'm at in the process just to give you context I've created my app and inapp purchases in app store connect on the revenue cat website I've created my account and my project I've connected my app store account to revenue cat and I've configured my products entitlements and offerings and I got my API key here in next code I've installed the revenue cat Swift package quick note on this when

3:08 you install it you know add package dependencies just like any other package you can search for it here in the upper right but I already have it searched for so hit add package there's these two the parser and the custom entitlements you want to select To None don't put those in your project Revenue cats documentation points this out but I skimmed over it and missed this so I wanted to point that out make sure you're only bringing in Revenue cat and revenue cat UI so I've already installed that in my project here I've already added the capability of inapp purchase and I created my store kit config file this allows me to test my inapp purchases right here within xcode and my certificate here again Revenue cat does a great job walking you through step by step on all of this finally in my swiftui app here I just initialize my app where I'm calling purchase. configure with my API key to initialize Revenue cat I don't care if you see my API key this Project's getting deleted by the time you watch this video so that's where I'm

3:55 at in the setup process and again I got it up to the point right where pay walls come into play so if I go go to Chrome here I am in the revenue cat website just to give you contacts on where I'm at I'm looking at my offerings projects RC payall example that's the name of my project this would be whatever you name your app you click on it and then over here on the left offerings right I told you I've already set up my entitlements my products those are already all set up pay walls we'll get to that in a second but right now I'm looking at offerings because offerings are the key thing to understand with pay walls so what is an offering an offering is essentially like here's what's for sale I know I'm using the word in the definition but like here's what on offer for example one of my offerings is annual only so in this offering you can see I'm only offering my annual subscription so my offering is one annual subscription now with offerings and pay walls uh

4:42 they map together one to one so you can have one pay wall for one offering so the reason we have multiple offerings is well one you can easily switch between them on the fly if you'd like to do that or this is the key to running a test right you're you can ab test between one offering and another and then each of those offering has their own pay walls so in this example I would be testing between hey what happens when I offer only an annual subscription to my app and then the other test would be hey what happens if I offer the annual and the monthly product maybe you want to see how well you can convert when the only option is annual because we all know those annual customers are better right lower turn rate longer lifetime value Etc so back to my overall offerings this check mark by the way as you can see the current offering only one offering can show up at a time in the app itself now if I just confuse you on like how you can show two offerings that's

5:27 because one set of users is getting anual only and another set of users would be getting annual and monthly you know that same user wouldn't get both offerings just to clear that up so one offering one pay wall and then you can run AB tests and experiments between those two offerings now a quick tip on AB test is you don't want to test too many variables at once for example if we were going to test out this annual only versus annual and monthly we would want the exact same pay wall where the only difference is one has only an annual offering and the other has annual and monthly right if you start saying oh and I'm changing a button color and and I'm changing the images and I'm offering two different things well now you're not really controlling the experiment to know what's driving all the changes so again when you're building your experiments and building your pay walls do your best to test one variable at a time okay so let's add a pay wall to our

6:12 annual only offering so I click on that and you see there's an add pay wall button or down here on the left pay walls beta I can click on that and here I see my offerings and I can add pay walls to each one so we're going to start with the annual only offering and I'm going to show you this two ways I'm going to show you how to use the complete pay wall and then I'm going to show you an example of just using the foter review which again is what I'm super excited about with my own custom pay wall so at first let's do annual only add pay wall you can see these templates that you can uh pick from so here we have like a typical like image title and then plan this is what you want to use if you only have one plan this one with the plane here you can see it has monthly annual if you have multiple plans you want to use this template and then this is the blinket style timeline popular pay wall where you reassure the user that like hey you're automatically going to be charged in 14 days and at day seven you'll get a reminder you're kind of like easing that fear of like forgetting

7:00 to cancel the free trial okay so we're going to start with this one which just has the image text for our full annual pay wall so now when I click on this you see the preview now this is when we can start customizing this image so you can drag and drop an image in here so I have one ready here in my finder drag that over here content creator I'm going to kind of make a pay wall gear towards my app creator view now quick note you see pay walls is labeled beta they only announced it for iOS this is very very early in the project so those three templates you saw give it a few months I imagine there's going to be many many more templates and then this editor I imagine will evolve and grow and get better over time this is literally version I don't even know if it's called 1.0 it's technically beta so anyway if you're watching this at a later date expect this to maybe look a little different maybe have a little more options but this is what I'm working with right now so if I talk about the limitations of it I imagine those limitations will be handled later

7:51 so anyway when I put in this picture something to note is that it's going to if you have like a very long landscape picture it's just going to crop to the center of it so you may need to do some Ed editing to your picture maybe try to bring in just a square and Center it how you like it's what I had to do with this picture but anyway you can put in whatever image you want again I'm going to content creation route main content the title this is this ignite your child's curiosity I'm going to say amplify YouTube earnings right my app is a YouTube business app so subtitle I can say track profits from revenue streams plan your content know your business now these text Fields support markdown so I don't know let's say I wanted a bold revenue streams just to like really let them know so I can use some markdown around it or I guess that's italic I'm not a markdown professional

8:36 I thought that was bold but anyway you can see revenue streams is the tze so whatever markdown you know and you're comfortable with go ahead and do that moving on you can do backgrounds for light mode and dark mode I'm not going to change any of this because I want them to be just default and you can preview that here in the upper right display settings you have dark mode so that's what it'll look like in dark mode cool I don't need to do anything for that because it's using the default backgrounds okay so that is the basics of what you can do with the UI right I can change the image oh not not quite done yet down here in call to action I can change the button color so let's click on this do the finder here let's pull this teal out of that image just bring everything all together uh we want the same one for dark mode go ahead and do that there you go so anyway what I was saying back to the call to action before we set up like what package we use and all that stuff as far as the UI goes that's kind of like all you can do but again you get something pretty decent

9:23 and what took me what a minute to to go through as I'm explaining things so these built-in pay walls are great start for you again to get something quickly up and running again the footer viw is what allows you to just go wild designing your own pay wall we'll get to that in a second let's finish up this fulls screen pay wall using their templates so the package this is where you choose what is being shown to buy now we only have one thing in our offering that's our annual so that's all we got but package detail this is where you configure the text that's above it see it says full access for just $339.99 a year well this is utilizing variables so you could just type in whatever you want here but see these curly braces and I wish I wish they could like let us copy and paste this because a lot of their dummy data or their placeholders are actually good and valid but I have to like retype it and remember what it was so we'll say full access for just again see like I

10:09 can't even remember what it was but this is the a variable here so total price and per month so if I go up to their documentation here this creating pay walls documentation you can see it's on the left under the tools section I'll move that above my head there creating pay walls Charlie here has a great half hour long video that I watched a bunch trying to prepare for this video you'll see some similarities for sure uh you can walk through that whole thing but I'm going to scroll down to the variables so here they are so these are the variables that you can use in your your packages here you know product name price total price and per month that's what you get here right this $399.99 or $3.33 a month that's what you you see normally so your variables you want to put in between the double curly braces so I'm going to copy that just like you see here so I'll say full access for just and then double curly brace paste that in there double curly brace and now what you

10:57 see on my preview here is the actual variable well you can change this here and it just puts in dummy data so I can go to display settings variable preview values and you can see that's what it would actually look like without the variable so you can switch back to your view here by the way I have to scroll up and down that's just because my screen is blown up on a normal screen this will all be like in full display so okay anyway uncheck that so that's when we don't have a free trial so when we want a free trial we want to show something different right you see their placeholder value says get sub offer duration that would be like 7 days free then you know $39 a year whatever whatever yours is so again I wish I could just allow this to to be the thing but I have to remember it and type it so it's going to be get sub offer duration free then price per period so get and then I'm going to again make sure I avoid typos sub offer duration from the variables

11:44 here double curly brace free then I believe it was just total price yeah we'll say price per period because that's just $39.99 a year double curly brace price per period so now when I in the display settings I can say introductory offer values oh and then got to go back back to off the variables there we go so get one month free then $39.99 a year so you can see I can play with the variables to make this say whatever you like now the reason this is so cool is because this is kind of easy to do here in this editor if you're building your own pay wall if you've done that before before these pay walls existed with Revenue cat you have to fetch all this stuff yourself from like a Network hall and then you have to parse it out and you have to piece it back together within your own pay wall UI and do the calculations for like the proper discount and then check for if they're eligible for a free trial and all that stuff these pay walls bundle all that work in into

12:29 this UI here remotely and it's just it's amazing the amount of work that's being done for you again I think you can only appreciate that if you've built it all on your own first and then these come along so a lot of great stuff being done for you under the hood here so that's the package uh we already did our call to action well I didn't do this so I can say get Creator view Pro this is the you know what you want what do you want to put on the button and then if they are eligible for free trial then it can say start free trial and again same thing you can change the color the button the text we already messed with that colors here footer links this is as you see restore purchases you you can see terms of service URL so https Creator view. apppp terms of service and then I'm going to copy this because it's basically the same thing for privacy so now you see restore purchase terms and conditions privacy policy now the cool thing here is that see how its terms and condition

13:16 got broken on two lines because it's long it will intelligently make this one line so it'll just say like restore it'll just say terms and then privacy so it it intelligently adjusts so you don't have weird UI okay so that's our photo links again just a recap call to action was the button what you want to say on the button the color the package this is actually what you're selling and then how you want to display the price the discount all that stuff main content this is your your title your subtitle what color the background is then you change the image so again you can't change all that much but that's kind of the point right they gave you this template again if you want total freedom it's when you do the footer viiew but now that we have our pay wall created let's hit create pay wall and then if I go back go to my off or offerings you see annual only it's called Jaguar that's like the code name for the template but okay so our annual plan is the current offering

14:02 so when I run my app this is the offering that it will go to so Back in X code let's actually start showing this so here I am in my app here I'm configuring Revenue cat here but on my content view a simple modifier will show your pay wall so set pay wall never mind I have to import Revenue cat UI first so import Revenue cat UI now I'll have access to this pay wall I want to say present pay wall if needed so let's actually do that so we can get some more autocomplete present pay wall if needed so the first one's kind of self-explanatory if you want to bring in a different font should display this is if you want to show this based on certain logic right you would pass in a bull here and then there's two completion handlers for a successful purchase and a successful restore I don't know maybe on a successful purchase You Want To Make It Rain Down confetti or whatever stuff you need to do on a successful purchase you get a completion hand for that so we're going to do pay wall if needed with required entitlement identifier so again the entitlement is what they

14:52 got so our entitlement is Creator view Pro they get access to everything with Pro so now you just have to pass in a string for the entitlement ident identifier so if I go back to revenue cat here on the internet go to my entitlements just to see what this is you can see the only entitlement I have which is unlimited access to all features is called Pro go ahead and copy that there back to xcode and I'm going to put in Pro so essentially what this line of code is doing if my user doesn't have the entitlement of pro show the pay wall so if you're following along this is going to spam every free user every time they launch the app with the pay wall that makes it even aggressive to you but a lot of apps do that and it is a viable strategy potentially for your situation but for the sake of this tutorial I'm going to do that so I can show you what this pay wall looks like and how these remote pay walls work so I'm running the app and you should see as soon as it fires up the pay wall slide up there it goes so okay so there's our pay wall from the back end

15:39 you can see how it came out like I said restore purchases terms privacy policy it made sure that was online you can see the pricing I have set up this was set up in my store kit config file by the way you can see annual $29.99 that's where it's pulling that from real quick this blue X over here this is based on your asset color so if you do accent color pull it up here um now just for us we'll do system teal and then when I rerun it you'll see that teal color come up but I also want to make another change so now we have the pay wall inter app right you're going to see I'm not going to change any code but if I go to my offerings I'm sorry pay walls go back to this pay wall now let's say I want to change the call to action button to set of teal and let's make it really ugly puke green hit save changes we're going to change it back but then I go back to xcode right

16:25 I didn't change any code I didn't do anything I'm just going to rerun it you're going to see the button be a different color now and this shows the power of just changing things on the fly on the back end looks like crap but hey there you go you can quickly make changes and again you can do this to your text your image now you see our X is is teal color just wanted to show you how to change that so now when I go ahead and try to make the purchase get Creator V Pro great we're subscribing to the annual great you're all set good to go pay wall dismisses show pay wall now if I stop it and run it just to show you that this code is working right the present pay wall if needed right it's checking this entitlement so now I have purchased it so now the pay wall doesn't show up because I am a paid user and I have access to everything so that is the full-blown pay wall and again I showed you this little modifier if you want to show it on launch but like I said many of you probably

17:13 feel that's aggressive and you want to show it based on certain logic so let me show you how to do that so let's get rid of this modifier and go to the content view real quick the benefit of that modifier see paywall if needed it's running all the checks for you if you just want to call the view if I go to content view import Revenue cat UI well if you just do pay wall view this is revenue Cats Pay wall view actually I need to show this based on a button tap so we do at State private VAR is showing pay wall equals false and then on the button tap we want to do is showing pay wall equals true again basic Swift UI stuff on the button here we'll add a sheet is presented dollar sign is showing pay wall and then the content will be pay wall view that's what we want to show so anyway the the point here is you need to handle the logic on your own so when you're using

17:59 just this pay wall view like I'm going to show you real quick uh it pop up but when you're using this outside of that if pay wall is needed you have to run your own logic but I hit show pay wall there it is so maybe you want to show a pay wall on a button tap right maybe you want to have a upgrade button or maybe you only want to show a pay wall in certain circumstances like in my app I allow a certain number of schedule items on the calendar once they hit you know over 10 schedule items and they're not subscribed boom show the pay wall so the difference between that modifier show pay wall is needed it handles all that conditional checking for you if you show it yourself like this you have to properly check if they're you know subscribed already or not and whatever conditional you want before you show the pay wall and I actually want to reiterate all the stuff that's going on here when I go back to the simulator here and showing the pay wall like this view here is doing so much for you again if you built the pay wall yourself you had to fetch what products you wanted to show

18:48 which is our annual plan you had to fetch the pricing and then you had to do your own math if you wanted to show the monthly version and then you had to do all the logic for like make purchase and handle all the errors and all this stuff like this pay wall again is doing so much for you but yeah this pay wall is nice and all but I don't want to be restricted by a template I want to design my own pay wall as you see here I want scrolling I want videos I want feature comparisons I don't want to be limited by your template as nice as it is so that brings us to the footer View and again this is what I'm excited about so let's stop this and go back to the revenue cat website go back to our offerings here or pay walls so we're going to do the footer viiew on our annual and monthly we're going to create a different pay wall for this so add pay wall and we want to pick the one that has two options right because obviously we want to show it monthly and annual so

19:35 now we do basically the same thing except this one's a little different because we only care about the footer so if I do images I don't really care about the background images so I'm going to leave those blank main content it says required because by default this will show the full pay wall view in our code which you'll see we have to specify that we want the footer view so just to save time I'm going to say like not needed nothing cuz we're not going to show that part right we only care about this footer viw here so when we get to the packages these two things down here is what we care about so package one yeah we want annual on the top that's fine so see requires two items so we're going to add another package as you see on the right it added another option so we want to do monthly and again this is all attached to our offering our monthly and annual offering that you saw I'm going to go back just to show you actually going to the offering you can see annual and monthly there's two products annual and monthly so again this is how offerings tie

20:22 to pay walls whatever is in your offering is what you're going to have as an option on your pay wall so back to pay walls add a pay wall again we want to click the option that has multiples and for I think I lost my stuff that's fine so main content say nothing subtitles nothing I don't care about that aspect of it now packages like I said uh annual is fine add package let's add the monthly package default package I want annual to be the default right that's usually the better one so I wanted default to annual package name now you can either have the product name which is going to be whatever you named your product Creator VI Pro or or whatever fun name you came up with I'm just going to do the period so monthly or annual and package details so I'm going to do what they have here total price and per month so again back to the documentation so I can copy and paste this these variables right copy and paste double curly brace double curly brace there it is copy this for

21:09 the introductory offer I'm just copying again what they have in there I think they're good defaults so total price per month after sub offer duration trial so there's total price per month after sub offer duration trial and just to make sure I have that correct we can again go back up here display settings let's do variable preview values s you see annual $39.99 a month $3.33 same thing for the monthly and if we do introductory offer values there you go $39.99 per year after 1 month free trial after 14 days free trial so to show you how that works cool good to go there so I believe that's our packages setup oh no we got to do our our selection called action so again I want this to be teal uh I don't have anything to pull it from so I'm just going to kind of grab a color that kind of looks like that there okay sounds good uh same thing for dark mode going to go

21:57 ahead and grab grab that and I believe this text might need to change let me go to dark mode to see if I uh need to change anything nope text is good there oh yeah black I want the text to be white here on the button so this will be the button text I guess I could have just yanked it up there white there so there we go cool so now my buttons look good in light or dark mode call to action so again this is the button here so we'll say get Creator view Pro or you know start free trial and then the button we don't want to be blue again we'll keep the button the same color here keep going with our theme same thing within dark mode uh you can just ex out the dark mode it's optional I'm just doing it right now just in case you wanted a different color for light or dark mode footer links I'm going to leave those blank for now you see restore purchases you saw me enter in a URL before simple stuff just to save time keep it moving so again I don't really care about the main body I only care

22:43 about the footer View and if I can check that out in footer so we'll go footer now they have also have footer condensed so if I go to display footer condensed as you see right now you can see both plans annual and monthly condensed goes down to this little guy here where you can hit you hit show all plans you'll see that when I run it and it'll pop up the plans so actually I'm going to go to my main content cuz this changes the background so the background color of my footer for light mode I want to be just ever so dark you'll see because it Blends in with my pay wall kind of like on on light mode the the the sheets are just slightly gray same thing with dark mode pay walls they're just a slightly lighter you know black they're not full full-on black so that's what we're going to go with as you can see there so cool now I got my well I'm going hit create pay wall don't forget to do that but now I got my footer pay wall set up for my annual monthly plan

23:30 so now what I want to do is go to my offerings and make sure my annual monthly plan is the current offering so right that make that current that way this is what I want to show right I want to show my annual monthly plan which is also tied to the footerview pay wall that we just created okay so back to xcode Let's actually use this so right now we are let's get the preview up and running so we can see right we're showing the pay wall on a button tap cool but we're showing this pay wall view while I have this scrolling pay wall view which is from my app it's a crap tunn a code don't even bother but right it plays a video I get to show features side by side if I scroll I can show little feature highlights can show my widgets you know my app store how can I cancel right anything I want to add to my pay wall I have in a scroll view the world is my oyster right here I can do whatever I want so on my scrolling pay wall back in my content view instead of showing pay wall

24:18 view I want to show scrolling pay wall View and here's the difference right because I can just hit the button now and it'll show that ah but there's no there's no Revenue cat stuff here right so get rid of that what I need to do to get my footer view is pay wall footer and here's the parameter as you can see condense again same thing for fonts and then there's a completion Handler for purchase or restore again if you want to show confetti on a successful purchase whatever you want to do so we just want condensed here and I'm going to say true and I'll show you what that means you can't have it by default be expanded and again I'm showing the payall on a button tap in a real app you would have to do all your own logic to show your pay wall when it's appropriate for the user you know check if they're already subscribed all that stuff so show payall wall great there's my pay wall and you can see I'm scrolling through the pay wall and I got my footer view down there you see it

25:04 says all plans restore purchases so if I tap all plans there you go it expands monthly annual now the reason I like this is because let's say you did have you had annual monthly weekly lifetime maybe had four plans well you can imagine if you have the expanded version it's going to take up like the whole pay wall so like what's the point of having your own content behind it if it's so tall so that's why I like this condensed version so you can show your default plan which is the annual plan you can see 299 a year 249 a month but they can hit all plans to see monthly or annual and if we command shift a to double check dark mode go to all plans so yep looks good in dark mode as well but like I said to me this is the killer feature right I really love having a video on my pay wall to explain my app and show it there's voice over to I'm not playing that I want to show my all this basically anything I want to do and I get to bring in Revenue cat to handle all the Dirty Work handle all the hard stuff I get to play around and have fun Revenue cat you

25:53 do the dirty work okay well stop this and back to the revenue cat website to talk about experiments and obviously this is a dummy project I don't have millions of users to run an experiment on to show you so I'm going to have to show you some images here but if I go to experiments we can create a new experiment now experiment it's like an AB test right I want to compare one pay wall to the other so we'll say annual only versus monthly and annual right that's the experiment we want to run backing up remember in a real experiment we would want to use the exact same pay wall design with the only difference being one option of annual only and the other offering is just monthly and annual that's the only change right you want to control the variables to test for that in our case we have two different pay walls for each offering so this would be an example of a bad experiment because we're trying to test too much all at once but I want to point that out the control variant this is

26:39 what you normally offer so let's say we normally offer annual and monthly like that's pretty standard but we want to test like hey what happens if we only offer annual let's see what happens when we do that and then the enrollment criteria all apps all countries Now new customers to enroll this is cool so this will put 100% of new people in your app into this experiment they'll get the ab test of annual only or annual monthly but let's say you have 300 million users and you want to run this small test but you don't want everyone to go into it right that's that's kind of risky so you can say hey I only want 20% of my new users going into this so again it's up to you and how many users you have to determine you know do you want to run this experiment on everyone or just a small subset and then balance the pros and cons of like how quickly you'll get the data so anyway I'm going to put that up to 100 let's sayit create experiment oh that experiment's already exists I was I was doing my rehearsal in testing so uh let's say put a two after it once you if created

27:28 the experiment you have to hit start as you can see this is a bunch of empty data here but if I go to the experiments uh this is a documentation which gives you tells you all about it gives you an example you get to pick your metric this is an example of just real lifetime value again this is an image so I can actually change that but you can see all kinds of different metrics what I liked about this is the customer Journey tables here you can see between the control and the treatment what is the change right how many users converted on the control in the treatment how many trials started how many trials completed how many trials converted like you see the whole customer Journey based on each pay wall and you can see like a whole lot more Revenue total Mr between each one so you can run all these experiments uh between the two different pay walls to really dial it in and just ultimately make more money at the end of the day right if you have a high converting pay wall you just make more money and the last bit of customization you can do is getting more advanced

28:14 but I want to show it to you just in case you want to go down this rabbit hole but you can attach Json to your offering so that you can change your custom pay wall on the Fly too let me walk through that to show it to you so back in my pay wall here offerings and one monthly see metadata a Json object that allows remotely configurable variables into your apps so I'm going to hit new metadata now let me go to my xcode here to show you my scrolling pay wall okay without the footer view you just see the pay wall for the example so what this allows me to do when I fetch the offering I can attach Json to it so the example here is let's say I want to test it with a video and without a video and see which one converts better maybe the video is too distracting I can pass in the Json of like hey show video and it's either true or false and then I pull from that Json when I pull up my pay wall and whether I change that on the back end that's that's the key here I can change it

29:01 on the back end whenever I want true or false it will show or hide that and I can change the title here of maximize YouTube success to you know whatever title I want now I can change basically anything on this pay wall from the back end by injecting the Json so let's do that real quick with a super simple example back to the internet here so here's my Json we'll say show video and that is going to be a Boolean we'll say True by default now that's just one property right I could have you know title test oh I forgot my comma my point is you can make this Json have as much data as you want and then when you pull that Json you can extract it and then do whatever you want on your payall in your app let me show you again with the super basic one of show video or not showing video okay so I'm going to save that metadata so now my offering of annual monthly has Json attached to it and it's very simple Json just show video again it can be more complex and it's going

29:49 to give me a Boolean so now back in X code that's all I have to do over here uh back in my content view well I need to fetch that offering and get that Json so when my my button appears we'll do a task right this is where you do your network calls say guard let offering equals try and I'm Force unwrapping this just for the sake of the tutorial go ahead and do the do try catch handle the error all that stuff a wait purchases again so purchases is the revenue cat sdk. shared. offerings. current so essentially what this is doing this is pulling the current offering n cannot find purchase in scope because I need to import Revenue C that's why it didn't fully autocomplete for me and then say else return all right I'm going to make my code a little smaller so what I'm doing here is I am pulling the offering from this network call and I'm Force unwrapping just for the sake of the

30:34 video handle all the air same thing with this empty return on the guard statement want to do proper air handling but I'm pulling the current offering and if you remember back in Revenue cat the offerings go back to offerings the current one is annual and monthly so this is what I'm pulling in and this is the one that has the Json attached to it so back to xcode I need to pull from that Json if I should show the video or not so we're going to have a state variable here at State private bar should show video is false we're not going to show the video by default so now I want to do should show video equals offering. metadata you know get metadata value for and this is the key right so if I go back to revenue cat here let's go back to my Json so the key here is this show video so I'm going to copy that show video it's got to be a string though so the string

31:23 is show video and then the default is Boolean so I'm going to make that false right so if if for some reason this comes back bad well our default value is false we're going to only going to show the video if we made it true in our Json which it is true in our Json so when we run this I should see my video but first I got to do quick little code on my scrolling pay wall here so here's my scrolling paywall again a whole bunch of code kind of relevant to you so I have a pay Wall video view so I want a binding so binding VAR should show video and that is a bull so here on this payall here I'll say if should show video I'm just doing some quick down and dirty code here then we will show the paywall so if that's true then we show the video if it's false then we do not got to go a and fix my preview here so we'll say constant is false and all right back to my content view

32:10 I need to pass in that binding so I want to pass in dollar sign should show video so what happens is I run my network call I get the offering I get the value of my metadata set my should show video to that which Updates this state which then gets passed down to my scrolling pay wall to either show or hide the video so when I run it we should see the video because in my metadata up here it is true so we'll test both ways so let's run it I should see the video on my pay wall show pay wall there's the video there's the pay wall good to go okay let's go edit this on the back end again I'm not changing any code we're going to edit this on the back end edit this is now false and the key thing is like when you can edit stuff on the back end that means you can run AB test against it and experiments so again I can run The Experiment video no video on two pay walls

32:55 and see how they perform so let's save it and then now back to xcode again I didn't change any code just rerun it and I should see no video no video just get right into the features right into that so again that's the power of metadata is as you can see I can create Json where I can pull data from and then manipulate my custom UI however I see fit again if I want to change the title of maximize your YouTube success maybe I want to show different features in my feature set again I can do anything I want to make this customized and then run experiments against it on the back end so again this new pay walls whether it's running experiments on different offerings or just different UI in your custom pay wall super powerful such a great addition from revenue cat

Share

Другие пересказы видео