Show all logged-out visitors a login modal immediately on page visit. Both custom and default Memberstack work.
View demo projectCréation du scénario Make.com
1. Téléchargez le modèle JSON ci-dessous pour commencer.
2. Naviguez jusqu'à Make.com et créez un nouveau scénario...
![](https://cdn.prod.website-files.com/5bbfaf3252489b4c484ba9b9/648c5b1fbc7994f029551c78_Screen%20Shot%202023-06-16%20at%208.51.21%20AM.jpg)
3. Cliquez sur la petite boîte avec trois points, puis sur Import Blueprint...
![](https://cdn.prod.website-files.com/5bbfaf3252489b4c484ba9b9/648c5b29e80e81cad00f11c8_Screen%20Shot%202023-06-16%20at%208.51.33%20AM.jpg)
4. Téléchargez votre fichier et voilà ! Vous êtes prêt à relier vos propres comptes.
Besoin d'aide avec ce MemberScript ?
All Memberstack customers can ask for assistance in the 2.0 Slack. Please note that these are not official features and support cannot be guaranteed.
Join the 2.0 Slackv0.2 - Fixed redirect handling
Slight issue with the default modal code which has now been updated.
How to Prompt Visitors to Log In
Memberscripts needed
#11 - Automatically Open Login Modal - How to prompt visitors to log in
Tutorial
https://www.loom.com/share/4c5ddc17d36f4f7b9b6f7986f1b341a1?sid=4bd469f8-b01d-4754-8742-aba1c38b3964
Attributes used
ms-code-modal=”login”
Cloneable
https://webflow.com/made-in-webflow/website/automatic-login-modal
Why/When would need to Prompt Visitors to Log In?
- Lead users further down the conversion funnel and increase your conversion rate.
- When creating an account, you can uniquely identify users on your website and target them with special offers based on the data you have on them.
- Accounts allow users to see and control the data they share with you, thus fostering transparency and building trust.
- Accounts allow users to get a better support experience – e.g. being greeted with their name, already having access to their activity/purchase history, etc.
Getting your website visitors to create an account and log in is a great way to lead them further down the conversion funnel and increase your conversion rate.
They might not be immediately inclined to do this but you can nudge them a little by, for example, displaying a login modal. Within that modal, you can talk about the benefits of creating an account and offer them a quicker way to do so through their existing Google, Microsoft, or Facebook accounts, for example.
How to add a login modal to your Webflow site
To add a login modal to your site, you can use MemberScript #11 – Automatically Open Login Modal. Open the link and you can see a tutorial video on how to set it up.
Creating the modal
You can either build a custom modal yourself and add all the fields and buttons you need, or you can just use our demo.
If you choose to use a custom modal, just go ahead and build the login form however you like and use the attribute ms-code-modal=”login” for the main parent of the element that holds your login form.
Making it work
Now that you’ve got your modal built, you need to add the custom code from MemberScript #11 to your page, before the closing body tag.
If you’ve watched the tutorial video, you’ll know that once you copy the code to your site, you’ll need to choose between the default MemberStack modal or your own custom one.
To do that, you just need to move around some comment tags in the code and it only takes a few seconds.
And that’s all there is to it, you’re good to go. You can edit the modal however you want and offer all the login methods you think would be beneficial to your users.
Conclusion
As mentioned earlier, asking users to log in can be beneficial for both your users and yourself and using MemberScript #11 is a super easy way to implement a login modal on your Webflow site.
If you need a bit of help to get you started or just don’t want to create a custom modal, you can get our free cloneable and add it to your Webflow site in minutes.
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65660cd8cef4624fcb225ba6_bgaVTegWs_JKu3pkn8nxD1NFOyXCfCFlQNo-6UNlMEz35v-mu0KT6d_YiNHs01F7aE9BUVRJFwjZMr8tOJeDoOxT_3YyBDjPsRgyRAV_dY_2w5Blhx1k70M1-Cdo8KT4gfuwCkvsG3-VV7wLt6jOmww.webp)
Take me to the Scripts
#11 - Automatically Open Login Modal - How to prompt visitors to log in