Created
August 7, 2023 06:43
-
-
Save dan-donica/128c6e54f568fadff75d9ae0c2e721c4 to your computer and use it in GitHub Desktop.
HC || Google Analytics event tracking - 3
This file contains 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 "Google Analytics form 2" || Help center --> | |
<!-- Add to Settings-Javascript->Body --> | |
<!-- IN:20200120-16-3 --> | |
<script> | |
window.instapageFormSubmitSuccess = function (form, wid) { | |
if (wid === 6) { | |
ga('IPTracker.send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]); | |
} | |
else if (wid === 7) { | |
ga('IPTracker.send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]); | |
} | |
else { | |
// do nothing out of a box | |
} | |
}; | |
</script> | |
<!-- End "Google Analytics form 2" || Help center --> |
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/360019251491-Google-Analytics-event-tracking