Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dan-donica/4f53191d8998f4fc8593af9619c8f20b to your computer and use it in GitHub Desktop.

Select an option

Save dan-donica/4f53191d8998f4fc8593af9619c8f20b to your computer and use it in GitHub Desktop.
HC || Facebook - Conversions triggered by multiple form submissions
<!-- Begin "Conversions triggered by multiple form submissions" || Help center -->
<!-- Insert in Settings->Javascript->Body -->
<!-- IN:20200120-19-3 -->
<script>
window.instapageFormSubmitSuccess = function (form, wid) {
if (wid === 6) {
fbq('track', 'Lead');
}
else if (wid === 7) {
fbq('track', 'Lead');
}
else {
// do nothing out of a box
}
};
</script>
<!-- End "Conversions triggered by multiple form submissions" || Help center -->
@dan-donica

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment