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
<script> | |
// CF7 Submit Trigger | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
if("311" == event.detail.contactFormId) { | |
dataLayer.push({'event': 'Contact Form Submitted'}); | |
} else if ("842" == event.detail.contactFormId) { | |
dataLayer.push({'event': 'R500 OFF Form Submitted'}); | |
} | |
}, false ); | |
</script> |
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
<script> | |
// CF7 Submit Trigger | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
dataLayer.push({'event': 'Contact Form Submitted'}); | |
}, false ); | |
</script> |
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
<script type="text/javascript"> | |
// Tawk chat trigger | |
Tawk_API.onChatStarted = function() { | |
if(Tawk_API.isVisitorEngaged()) { | |
window.dataLayer = window.dataLayer || []; | |
window.dataLayer.push({'event': 'Chat Started'}); | |
} | |
}; | |
</script> |