[ad_1]
I want to install facebook pixel, I need it for custom event that I have created. Because normal way of doing it doesn’t work, how to implement it via code?
This is what I have done so far, and it works on WordPress pages:
/*Pixel Event Code*/
function fb_print_pixel_event(){
if (is_page(46) ) : ?>
<!-- FB EVENT CODE HERE -->
<?php endif; }
add_action( 'wp_head', 'fb_print_pixel_event' );On the line: if (is_page(46) ) : ?> replace the 46 with the ID of your specific page. How to achieve this on CartFlows pages?
Thank you on your answer in advance!
- This topic was modified 2 hours, 18 minutes ago by .
- This topic was modified 2 hours, 17 minutes ago by .
