Created
July 19, 2023 08:48
-
-
Save dan-donica/4f53191d8998f4fc8593af9619c8f20b to your computer and use it in GitHub Desktop.
HC || Facebook - Conversions triggered by multiple form submissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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 --> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://help.instapage.com/hc/en-us/articles/360016176731-Using-events-to-track-conversions-with-the-Facebook-Pixel