1jQuery( function() { 2 jQuery( ".wpcf7" ) 3 .on( 'wpcf7mailsent', function( e ) { 4 var gtm4wp_cf7formid = '(not set)'; 5 if ( e && e.detail && e.detail.contactFormId ) { 6 gtm4wp_cf7formid = e.detail.contactFormId; 7 } else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.contactFormId ) { 8 gtm4wp_cf7formid = e.originalEvent.detail.contactFormId; 9 } 10 11 var gtm4wp_cf7forminputs = []; 12 if ( e && e.detail && e.detail.inputs ) { 13 gtm4wp_cf7forminputs = e.detail.inputs; 14 } else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.inputs ) { 15 gtm4wp_cf7forminputs = e.originalEvent.detail.inputs; 16 } 17 18 window[ gtm4wp_datalayer_name ].push({ 19 'event': 'gtm4wp.contactForm7Submitted', 20 'gtm4wp.cf7formid': gtm4wp_cf7formid, 21 'gtm4wp.cf7inputs': gtm4wp_cf7forminputs 22 }); 23 }); 24});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.