How to fix Memberstack redirect issues when gating premium course content for free users? Answered
Hello everyone, Hope you are doing well! š
We are currently using Memberstack for selling our courses through subscription plans. We are currently using the freemium model approach to provide a 6-week course to our users and access to the course is only possible once the users register with us using the signup form.
We currently have 2 groups of users, One of them is free (The user gets access to the course by registering with us) and another group is for the paid user (The user gets access by purchasing the course). Currently, we are having trouble with the redirects and gated content. So could someone of you please kindly help us with our issue, it will be highly appreciated as we are facing trouble with user flow.
Our Requirement:
- For Free users: The user gets access only to Week 1 of the course and when a user tries to click on any of the pages of Week 2 - Week 6, User gets redirected to the pricing subscription plan.
- For Paid users: The user gets access to all 6 weeks once they make the purchase.
Thank you for your help in advance and I wish you a nice time ahead!
Regards,
Shaun.
Comments
18 comments
Hey Shaun, I'm on the case š Just a sec, ill send a video
Julian Galluzzo Thank you so much for your quick reply and support, appreciate it š
Here's a video which should point you in the right direction, and also a template! https://www.loom.com/share/fa955f56aaaa423e9e97b82387da8276
https://webflow.com/made-in-webflow/website/coursestemplate
Additional note:
Set the "access denied" url for the paid courses to be your pricing page š
Julian Galluzzo Thank you once again for the brief explanation video, it is really helpful. So currently, We just have pages developed normally on webflow and we do not have any CMS Collection. So would you say that we need to create 2 different CMS collection? One for free users and one for paid users? š
Also we would like to use our template, so it that possible? š
Glad to hear it!
You won't need to make collection lists, but you will need to apply the same logic - have some sort of URL identifier (perhaps a folder) to separate the free and paid course items, then gate them in Memberstack based off that!
I see, So what if I create a folder called Free users and add Week 1 course pages to the folder and create another folder called paid users and add Week 1-6 course pages to that folder?
Our concern here is, Do we need to duplicate pages for Week 1 for our paid users? š
As we are already using Week 1 pages for our free users, how do we also allow access to Week 1 to our paid users?
No problem there! Since you are gating the free pages by users who have an account, the paid users will also be able to access them.
You will just need to add a navigation element to go between these pages, and then add the correct attribute to the links that go to the paid pages, so only paying users can see them
Alright great, thanks! I will try out this process and get back to you if there's anything more. Have a good one! š
Perfect, let me know if you get stuck - have a great day! š
https://www.loom.com/share/7fcbe32097b949099e102faaf5d5b330?sid=69dfa177-8d88-4db9-9d9c-6c376f2d09f3
Hi! Sorry, 2 questions... I have a weird issue with login-redirect to a member dashboard. It won't work on intial signup, but if I refresh the page, it works. I attached a video to show what's happening.
Could this just be the lag time in Zap?
I hve left the page loaded for a while before attempting and verified data was there before trying, it didn't help
The zap updates the members login redirect. All of the correct data is there. If you simply go back to the welcome page, refresh and then click it's fine!
Every. Time. no matter how long I wait
Gotcha!
You're right about it being a lag with Zapier.
Essentially what's happening is when the member signups and lands on your Getting Started page, Zapier hasn't had time yet to update the member with the login redirect. Plus, the reason why it doesn't work even if you wait a while is that Memberstack doesn't check for updates until the page is refreshed.
I've seen folks solve this in a few different ways.
One way is to have a page before your getting started page that says something like "Setting up your account, please wait." On that page you would have some custom code that would wait 5 seconds, and then redirect the member to the getting started page.
The hope there is in that 5 second period, Zapier has had a chance to update the members login redirect.
Another option that would be to have custom code on the getting started page that polls the getCurrentMember function and waits for it to see the redirect. Once it sees the redirect, the code could then display the "Go to my dashboard" button.
Let me know if you think either one of those options would work for you. I can help with the code if needed.
Interesting... I did consider a loading screen. I'll try that out and if it doesn't work, I'll try the other option. The thing is.. when I check the members data before clicking login-redirect button, the data is there already.
I followed a demo, and copied his workflow exactly to get an idea of how the tool works.
Can you send a loom video showing the login redirect being in the member data, but the login redirect button not working?
That might be a bug on our end. I just pushed an update that may fix that problem. You might need to clear your cache to get the latest version.
Even if it starts working tho, a loading screen would still be good if Zapier is ever slower with the update.
Okay, cool, let me adjust redirects because I just finished hte loading page hahah.
Still doing it, I cleared cache and used incognito.
https://www.loom.com/share/b4382d61e6a945e29601600f478eb70e?sid=c10c042f-37fa-4ff8-92e1-94a9c9afaede
For your own reference... I am going to just use the loading screen, but eventually it would be nice to get to skip that step.
Hey gang! Iām having issues with the gated content side of things.
The redirect is not taking place for those not on a paid plan.
Hey Salvador Zeferino, I just checked that the redirect happens if I try the url with 'lessons/' as the last part, but in case you want to redirect users from all pages which are under lessons (and if they are not on the paid version), you need to just change the condition in the screenshot under 'Restrict Specific URLs' from "Equal to" and instead select it to be "Starting with", I am guessing the url you have specified is right, just the option should be changed a bit.
So, doing that you will restrict access to all URLs which start with the said '..../lessons/' and paid users will not be redirected as per your requirement.
Hope this helps.
Hey AJ, that did help! Thank you. It is not working when someone is logged in though.
Welcome š
Oh okay, can you check if the logged in member is not assigned the Close More Coatings plan? š¤
Please sign in to leave a comment.