 {
function runPixelCode( response ) {
if ( ! response || ! response.data || ! response.data.fb_pxl_code ) {
return;
}
try {
new Function( response.data.fb_pxl_code )();
} catch ( e ) {
console && console.warn
&& console.warn( 'Meta Pixel response parsing failed. Please check if your pixel is connected.', e );
}
}
var radio = window.nfRadio
|| ( window.Backbone && window.Backbone.Radio );
if ( radio && radio.channel ) {
radio.channel( 'forms' ).on( 'submit:response', runPixelCode );
}
if ( window.jQuery ) {
window.jQuery( document ).on(
'nfFormSubmitResponse',
function ( event, data ) {
if ( data && data.response ) {
runPixelCode( data.response );
}
}
);
}
})();
</script>
<!-- End Meta Pixel Event Code -->
<!-- Meta Pixel Event Code -->
<script type='text/javascript'>
(function ( $ ) {
if ( ! $ || typeof document === 'undefined' ) {
return;
}
// WPForms triggers this jQuery event and passes the AJAX response object.
$( document ).on( 'wpformsAjaxSubmitSuccess', function ( event, data ) {
if ( data && data.data && data.data.fb_pxl_code ) {
try {
new Function( data.data.fb_pxl_code )();
} catch ( e ) {
console && console.warn && console.warn( 'Meta Pixel eval failed', e );
}
}
} );
})( window.jQuery );
</script>
<!-- End Meta Pixel Event Code -->
<script type=)
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/twentytwentyfour/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}