Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
447 B
3
Indexable
Never
<form id="form" action="/" method="POST">
  <input type="email" name="email" id="email_address">
  <button>Sign up</button>
</form>

<script>
  var form = document.getElementById("new_contact"); 
  var email =document.getElementById("custom_field_text_field_2442198");
  
  form.addEventListener("submit", function(e) {  
    // Make sure the SparkLoop library is loaded
    if (SL) {   
      SL.trackSubscriber(email.value);
    }
  })
</script>