Using MailMunch on a Single Page App

MailMunch works on Single Page Applications just like any other platform.

MailMunch site code needs to be added just before the closing </head> tag in your HTML. The site code can be obtained from your MailMunch account.

 

Once you have added the site code and with 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:

mailmunch.pageview(); 

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

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.