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.
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
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
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
please do not put any of these lines in any of the pixel codeFor the search result template you only needCode:search_string: 'leather sandals', content_ids: ['1234', '2424', '1318', '6832'], content_type: 'product'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.Code:<!-- Facebook Pixel Code --> <script> fbq('track', 'Search'); </script> <!-- End Facebook Pixel Code -->
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
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
This is what i got<!– 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!
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
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_defaultCode:<!-- 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 -->
Bookmarks