All Collections
How to use MailMunch on a Single Page App?
How to use MailMunch on a Single Page App?
Liz Gannes avatar
Written by Liz Gannes
Updated over a week ago

MailMunch works on Single Page Applications just like any other platform. Follow the easy steps below.

Step 1: Sign in to your MailMunch account, and choose your site.

Step 2: Click on the Site Settings tab present on the bottom left of the screen.

Step 3: Click on the GET SITE CODE button on the top right corner of the screen.

Step 4: Copy the site code.

Step 5: Paste the MailMunch site code just before the closing </head> tag in your HTML.

That's it! Once you have added the site code and the forms created in your MailMunch account, they should be live on your domain.

Now you have to make sure to call the following code every time a new page loads:

This will ensure that a fresh call is made to the MailMunch servers every time the page is refreshed and that any Display Rules that you have in place for your MailMunch forms work properly.

Did this answer your question?