Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 47
  1. #31
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    did you remove the open graph module and install the structured data module I linked? In the first screen, I see there is no data in the Schema section.

    Zen Cart and it's community are the best!!

  2. #32
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    lankeeyankee

    I got the zen-cart_Structured-Data-master installed. I know this is not an app. but do I need an app id.

    i also had the facebook open graph. I removed the facebook open graph and turned it off under the structured data in the configuration file.. maybe that was my problem.. having both.
    i will let you know.
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  3. #33
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    still getting the same content_id error.

    and when you go to my facebook page and want to buy anything.. it shows out of stock.

    does anyone on these boards have this working correctly with content_id pull the content info correctly and not showing items as out of stock.

    the strange thing the catalog that is in the background.

    the first screen shot is the error
    the next is the background showing in stock available
    and the last one show it says out of stock
    so
    content id not pulling.
    thank you
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  4. #34
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    when you go to google's structured data tool does it show the correct info? And is the chrome pixel helper showing anything in the Schema.org section yet?

    Zen Cart and it's community are the best!!

  5. #35
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    Quote Originally Posted by lankeeyankee View Post
    when you go to google's structured data tool does it show the correct info? And is the chrome pixel helper showing anything in the Schema.org section yet?

    yes I did and it seems to use the JSON-LD


    <!-- Facebook Pixel Code -->
    <script>
    !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    document,'script','https://connect.facebook.net/en_US/fbevents.js');
    // Insert Your Facebook Pixel ID below.
    fbq('init', '<FB_PIXEL_ID>');
    fbq('track', 'PageView');

    fbq('track', 'Search', {
    search_string: 'leather sandals',
    content_ids: ['1234', '2424', '1318', '6832'], // top 5-10 search results --------->DO I JUST PUT IN ALL THE PRODUCT IDS I HAVE????
    content_type: 'product'
    });
    </script>
    <!-- End Facebook Pixel Code -->
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  6. #36
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    please do not put any of these lines in any of the pixel code
    Code:
    search_string: 'leather sandals',
      content_ids: ['1234', '2424', '1318', '6832'],
      content_type: 'product'
    For the search result template you only need
    Code:
    <!-- Facebook Pixel Code -->
    <script>
      fbq('track', 'Search');
    </script>
    <!-- End Facebook Pixel Code -->
    You do not need to add anything else, the tags pass all of the other information. I do not have content_id or anything else in the pixel code and it works as expected.

    Zen Cart and it's community are the best!!

  7. #37
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    can you give me your facebook catalog page.. so i can see how it works on other pages..
    thank you
    noppie
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  8. #38
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    still get the content_id error...
    see picture...

    I got the structure data installed.
    but it still isn't not picking up the products_id and connecting to the content_id. and i dont know enough code to get them to connect. i just dont know.


    thank you
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  9. #39
    Join Date
    Mar 2004
    Posts
    201
    Plugin Contributions
    0

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    <!– Facebook Pixel Code –>


    <!– DO NOT MODIFY –>
    <!– End Facebook Pixel Code –>

    This code will work great for tracking Zen cart page views from your Facebook ads when placed at the bottom ofincludes/templates/YOUR-TEMPLATE/common/tpl_main_page.php.

    However, if you are running a marketing campaign where you are paying money to Facebook, you definitely want to be able to track the conversion rate of your ads.
    For this to happen you will need to make some changes to the Facebook code to work with Zen cart.

    We need to add a tracking function to the pixel code which integrates with the Zen cart database variables. We have created this below for you to use within your facebook pixel code.

    if($_GET[‘main_page’] == ‘checkout_success’) {
    require_once(DIR_WS_CLASSES . ‘order.php’);
    $facebook_order = new order($zv_orders_id);
    //var_dump($facebook_order);
    ?>
    // Purchase
    // Track purchases or checkout flow completions (ex. landing on “Thank You” or confirmation page)
    fbq(‘track’, ‘Purchase’, {value: ‘‘, currency: ‘‘});

    Once this has been added to your pixel code you will be able to see the quantity of purchases through Zen Cart generated through any given ad and also the value!
    This is what i got
    if($_GET[‘main_page’] == ‘checkout_success’) { (((do i put in main_page]]]] and checkout_success
    require_once(DIR_WS_CLASSES . ‘products.php’);
    $facebook_order = new order($zp_products); [[[[[[ i dont think facebook_order would be good would i put in facebook_product?????
    //var_dump($facebook_order); and would i put in facebook_product here????????????


    I found this info on here
    https://evolutionwebs.co.uk/how-to-i...k-conversions/

    thank you

    ?>
    My Multi_Site Zen Carts
    http://herasonlinemarket.com

  10. #40
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: using facebook pixel to populate from my zencart to my fb business page.

    That is for order tracking, so it is different from what you were asking about originally. For orders, I have this in my custom template's tpl_checkout_success_default
    Code:
    <!-- Facebook Pixel Code -->
    <script>
    fbq('track', "PageView");
    fbq('track', 'Purchase', {value: '<?php echo $orders->fields['order_total']; ?>', currency: 'USD'});</script>
    <noscript><img height="1" width="1" style="display:none"
    src="https://www.facebook.com/tr?id=xxxxxx&ev=PageView&noscript=1"
    /></noscript>
    <!-- End Facebook Pixel Code -->

    Zen Cart and it's community are the best!!

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. Facebook Advertising Pixel tracking code.
    By MikeyG in forum General Questions
    Replies: 4
    Last Post: 16 Sep 2017, 09:07 AM
  2. v139h i wanna install facebook pixel into my website
    By juneloweelyn in forum Basic Configuration
    Replies: 4
    Last Post: 10 Apr 2016, 11:21 AM
  3. facebook javascript for remarketing pixel
    By juneloweelyn in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Mar 2014, 02:27 AM
  4. Is there a Facebook Add On for Fan Page Store tab?
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 30 May 2010, 11:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR