Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1227501

    denisechiriboga
    Participant

    Good afternoon,

    My website is fittritious.com and I’d like to add a Facebook tracking pixel to the page: http://www.fittritous.com/cookingworkshops.

    How do I add this to the page?

    Thank you,
    Denise

    #1227575

    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    You could follow the thread below.

    Facebook Custom Audience Pixel

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1324937

    denisechiriboga
    Participant

    Hi,

    I downloaded child theme like you said and installed and activated it. I then went to editor and chose Themes functions. I then placed the code you said in the thread at the very bottom under Additional Functions. Did I do this right? My site is fittritious.com

    Facebook now allows me to install Event codes for specific pages. How do I do this?

    Thanks,
    Denise

    #1325120

    Friech
    Moderator

    Hi Denise,

    Your site seems not accessible as of this moment, so I can’t confirm if the Facebook Pixel base code is successfully added on your site.

    http://image.prntscr.com/image/9d1baebd1b464453a0e945f529938804.png

    Yes, for the event codes you can paste it on a RAW content element.

    Please check your site.

    Thanks.

    #1405782

    denisechiriboga
    Participant

    Hi there,

    Can you check to see if the Facebook pixel base code is successfully added on my site. Thanks! Site again is fittritious.com

    #1405839

    Nico
    Moderator

    Hi There,

    I could see that it is added well without any conflict showing.

    Feel free to let us know if you need anything else again.

    Thanks.

    #1420202

    denisechiriboga
    Participant

    Hi there,

    Are you able to let me know if the instructions you gave me for the Facebook pixel install actually install it on every page of my website? In a comment above you were able to let me know that it was successfully installed but can you check if it was successfully installed on every page of my site? Thank you. My site is fittritious.com

    #1420488

    Rue Nel
    Moderator

    Hello There,

    The code given in this thread: https://community.theme.co/forums/topic/facebook-custom-audience-pixel/#post-232222
    if you have successfully added the Facebook Pixel, it will be displayed in all of the pages in your entire site.

    If you are using a caching plugin or any caching mechanism, you will need to clear the cache before all the pages will have the Facebook Pixel.

    Hope this helps.

    #1425895

    joimaradonix
    Participant

    I’m sorry interupting. I think i have same problem.

    I can add facebook pixel base code (page view) in to my site (www.mainaneduka.com)

    but I can’t do install for event code, like view content, add to cart, checkout, etc.

    I did put event code use raw content in cornerstone, the code can install, but the page won’t work properly.

    please advice

    NB :
    spesific page to be install add to cart code is http://www.mainaneduka.com/cart

    #1425994

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating this thread! Any of the WooCommerce pages has it’s content generated by WooCommerce. If you try to edit any of the pages, it is either, it will display differently or messed up the page totally. If you want to install the Facebook Pixel on the cart page, please add the following code in your child theme’s functions.php file

    // Add Facebook custom audience pixel Code
    // =============================================================================
    function add_facebook_audience_pixel_code(){
    ?>
    
    <?php if ( is_page('cart') ) : ?>
    
    <!-- Insert Facebook custom audience pixel Code starts here -->
    
    The Facebook custom audience pixel Code should be place here
    
    <!-- Insert Facebook custom audience pixel Code Code ends here -->
    
    <?php endif; ?>
    
    <?php 
    }
    add_action( 'wp_head', 'add_facebook_audience_pixel_code' );
    // End Facebook custom audience pixel Code
    // =============================================================================

    The code will only add the Facebook Pixel in the cart page.

    We would loved to know if this has work for you. Thank you.