Untitled

 avatar
unknown
plain_text
4 years ago
447 B
5
Indexable
<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>
Editor is loading...