To connect Subscribe form to the Mailchimp - you need to do following:
- Create new Signup form -> Embedded form in the Mailchim dashboard
- No need to configure it anyhow. Only thing we need is to create classic Embedded Form
- Then click on Generate Embed Code
- Then grab
"action"from the<form>tag. It should look likeaction="https://xxx.xx.list-manage.com/subscribe/post?u=<VALUE_OF_U_VARIABLE>&id=<VALUE_OF_ID_VARIABLE>"
- Copy
.env.samplefile and rename it to be just.env - Fill in values.
REACT_APP_SUBSCRIBE_FORM_DOMAINcorresponds toxxx.xx.list-manage.comREACT_APP_SUBSCRIBE_FORM_Ucorresponds toVALUE_OF_U_VARIABLEREACT_APP_SUBSCRIBE_FORM_IDcorresponds toVALUE_OF_ID_VARIABLE
- For deploying anywhere - you just need to pass expected content of
.envfile as Environment Variables.
That's it! Subscribe form connected, from now on - you can collect mail addresses.