Insert custom facebook pixel on CartFlow pages

[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 tarikbisevac.
  • This topic was modified 2 hours, 17 minutes ago by tarikbisevac.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer