I am developing a viewing room for an art gallery. Viewing rooms are pages with content that can only be seen by visitors if they provide their email address to add them to a newsletter. Something like the following site: https://www.davidzwirner.com/viewing-room/james-welling.
I know that pages and posts in WordPress can be password protected, but I don't need this type of protection. Is there any action I can hook to do this? Basically, I need to show a form so visitors can type their email address. Once they do this, they are added to a newsletter (a Mailchimp one, for example), and then the actual page is shown. Also, a cookie must be set so they don't have to provide their email address again to access this page in the future.
Thanks in advance