Insert custom facebook pixel on CartFlow pages
-
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!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Insert custom facebook pixel on CartFlow pages’ is closed to new replies.