I'm new at JS (and Stack Exchange) but would love to learn more about the lifecycle of my forms, specifically the multipage activity.
I've checked out this page https://www.cognitoforms.com/support/62/data-integration/clientside-events and have been able to get somewhere with the following code:
<div class="cognito">
<script src="https://services.cognitoforms.com/s/l7xGCnCNMEOaAr1owUlDng"></script>
<script>Cognito.load("forms", { id: "17" },
{ success: function() { ExoJQuery(function() {
ExoJQuery(document)
.on('afterNavigate.cognito', function(e, data) {
ga('send', 'event', 'F1 next', 'Navigate', 'F1 next',{transport: 'beacon'});
});
}); } });
</script>
</div>
My two questions are:
How can I learn more about which page is being clicked instead of all of the pages in general?
Can I both track beforeSubmit.cognito and beforeNavigate.cognito?