1(function($) { 2 document.addEventListener('wpcf7mailsent', function(event) { 3 if (smtCf7Settings.enable_conversion_tracking == '1') { 4 // Google Ads Conversion Tracking 5 if (smtCf7Settings.google_ads_conversion_id && smtCf7Settings.google_ads_conversion_label) { 6 gtag('event', 'conversion', { 7 'send_to': smtCf7Settings.google_ads_conversion_id + '/' + smtCf7Settings.google_ads_conversion_label 8 }); 9 } 10 11 // Google Analytics 4 Event 12 if (smtCf7Settings.ga_measurement_id) { 13 gtag('event', 'form_submission', { 14 'event_category': 'Contact Form', 15 'event_label': 'CF7 Submission', 16 'value': 1 17 }); 18 } 19 20 if (smtCf7Settings.enable_facebook_conversion_tracking == '1' && smtCf7Settings.facebook_pixel_id) { 21 // Facebook Pixel Lead Event 22 fbq('track', 'Lead'); 23 } 24 } 25 }, false); 26})(jQuery);
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.