Lesson notes
How it works
What the Memberstack install script does
The install script is one script tag. It carries your app ID in a data-memberstack-app attribute and loads Memberstack from https://static.memberstack.com/scripts/v2/memberstack.js. On Webflow, that also loads Memberstack's Webflow package, which scans each page for data-ms-* attributes and handles what they ask for: forms, modals, member data and hidden content.
It goes in the Head code because that code runs site-wide, on every page, and runs early. That matters later, when Memberstack has to decide who can see a page before showing it.
Memberstack also needs to know which domains may talk to your app. Add your Webflow staging domain (for example my-site.webflow.io) and your production domain under Settings, Application, and mark the ones you want in Test Mode.
How to install Memberstack in Webflow
Your site must allow custom code, so it needs a paid Webflow Site plan or a paid Workspace plan.
- In the Memberstack dashboard, open the install code (on the Getting started page or the Install Code section of Settings) and click Copy code.
- In the Webflow Designer, open the top-left menu and choose Site settings.
- Open the Custom code tab.
- Paste the script into Head code. If there's already code there, put Memberstack at the very top.
- Click Save Changes, then Publish.
How to check the install worked
Back in Memberstack, paste your published site link and click Test install code. It only passes after you've published, because it checks the live site, not the Designer.
While your app is in Test Mode, a test-mode badge shows on your site. That's normal, and it confirms the script is loading.