Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #802847

    Hi,

    I’d like to add Facebook pixel to track conversions from FB to my site. In the forum, there are conflicting responses with some saying the FB Pixel code should be in functions.php and another moderators said to just add it in to Google Tracking Services. FB says it should be in the header section of the site.

    What is the best practice now?

    Also, the FB event codes (for lead tracking, content views etc) are supposed to be added to specific pages depending on what type of events are to be tracked. How is this effected in the template or is it not directly supported? If not directly supported, how is this to be done?

    Thanks in advance.

    //Andre

    #803006

    Hey aseque,

    You can add code to the header using both methods, so both are valid. If you should need code for only a specific page/pages then you would have to use a conditional statement like the is_page() function in WordPress, you can read more about it here: https://developer.wordpress.org/reference/functions/is_page/

    Best regards,
    Rikard

    #883305
    This reply has been marked as private.
    #884046

    Hi,

    I’m not sure what plugin you are using, what code do you want to insert and where? We can give you a function to use.

    Best regards,
    Rikard

    #884521
    This reply has been marked as private.
    #885742

    Hi,

    Use

    IT is new and what it offers is amazing as per solutions

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.