mlabs-haskell / nft-marketplace

Other
2 stars 0 forks source link

Integrate email signup form with EngageBay #213

Open nrutledge opened 2 years ago

nrutledge commented 2 years ago

The email signup form in the footer should be integrated with EngageBay so that the emails can be captured in a CRM.

This integration is already configured using a snippet on the seabug.io site using the following snippet:

<script type="text/javascript" >
var EhAPI = EhAPI || {}; EhAPI.after_load = function(){
EhAPI.set_account('ju0vk5skn9h332dm61lissupl5', 'mlabsgt');
EhAPI.execute('rules');};(function(d,s,f) {
var sc=document.createElement(s);sc.type='text/javascript';
sc.async=true;sc.src=f;var m=document.getElementsByTagName(s)[0];
m.parentNode.insertBefore(sc,m);   
})(document, 'script', '//d2p078bqz5urf7.cloudfront.net/jsapi/ehform.js');
</script> 

We won't be using this snippet, but you should be able to get all the necessary details for the API request by interacting with the form (click on News to open the email capture form) and checking the network tab.

Acceptance Criteria

Reference

nrutledge commented 2 years ago

EngageBay REST API key: p43n7tqtprf9o79c8e37qtqlmu