I'm looking for some guidance on how to restrict access to a specific page on my website based on whether a user is a member of a specific Klaviyo list. Here’s what I’m trying to achieve:
-
Restricted Page Access: I have a webpage that contains secret deals. I want only users who are members of a specific Klaviyo list (let's call it "Secret Deals Access") to be able to view this page.
-
Redirect Non-Members to Form: If a user is not on this list, I want to redirect them to a form where they can submit their information to gain access. The form submission should add them to the "Secret Deals Access" list without requiring email opt-in.
-
Seamless User Experience: Ideally, after submitting the form, users should be redirected back to the secret deals page.
Here’s a basic outline of what I’ve done so far:
- I’ve created the "Secret Deals Access" list in Klaviyo.
- I’ve set up a form in Klaviyo to capture user information.
I’m struggling with how to implement the logic to check if a user is on the list and how to handle the redirection seamlessly. If anyone has experience with this or can provide a detailed approach, I would greatly appreciate it.
Thank you in advance for your help!