Skip to content

Instantly share code, notes, and snippets.

@jessehanley
Last active Nov 18, 2021
Embed
What would you like to do?
Thrive Leads
<script>
function track_bento_event() {
if (typeof(bento$) != 'undefined') {
bento$(function() {
// go over each input field and if it has email track it
bento$('input[type=email]').each(function() {
var email = bento$(this).val();
if (email) {
bento.identify(email)
bento.track("$subscribe")
console.log(email)
console.log('stored')
}
});
});
}
}
$('.thrv_lead_generation_container form').submit(track_bento_event);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment