Track subscription with CF7 integration
-
Hi,
I am using MailChimp for WP integrated with CF7; it works, but I want to track subscription in Google Analytics.
I’m using this code to verify the submission, and I would to send event to Analytics
<script type="text/javascript"> document.addEventListener( 'wpcf7mailsent', function( event ) { if ( '1100' == event.detail.contactFormId ) { //console.log(event.detail); for ( var i = 0; i < inputs.length; i++ ) { if ( '_mc4wp_subscribe_contact-form-7' == inputs[i].name ) { // SEND EVENT TO GA break; } } }, false ); </script>
I can’t find in event.detail Object the status of the checkbox about subscription.
Thank you
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Track subscription with CF7 integration’ is closed to new replies.