• Resolved tarikbisevac

    (@tarikbisevac)


    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 years, 2 months ago by tarikbisevac.
    • This topic was modified 2 years, 2 months ago by tarikbisevac.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tarikbisevac

    (@tarikbisevac)

    I have solved this by adding Meta Pixel script in custom code of every single page in the flow.

    • This reply was modified 2 years, 2 months ago by tarikbisevac.
    • This reply was modified 2 years, 2 months ago by tarikbisevac.
    Plugin Support Aamir

    (@aamiribsf)

    Hello @tarikbisevac,

    Thanks for letting us know.

    Glad that you were able to sort it out on your own.

    Please feel free to get in touch if you need help with anything.

    Have a great day ahead!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert custom facebook pixel on CartFlow pages’ is closed to new replies.