SEO, AdWords, affiliates, advertising, and promotions
Hi, I'm hoping to get some help with dynamic retargeting ads on Facebook.
We have set up a catalogue using a data feed provided by Flexify, but the issue we're facing now is that the Facebook pixel set up in Shopify isn't passing content_IDs data when it fires.
After hours of searching, I can't find any explanation as to how to set this up. Every guide I've found either assumes that the pixel is already sending content IDs, or gives the raw code and suggests 'put your product ID here', but that implies that the code has to be added manually to every single product page, which can't be the case.
Is there a way to pass this information through automatically with the Facebook integration in Shopify?
Any help at all is hugely appreciated. Thanks!
Dear @Callumnoel
Hope this will help you
If you are using the content_ids property in your parameter object, its value should correspond to the product ID or product IDs associated with the action. IDs must match the IDs found in your product catalog. Values can be either single IDs, or an array of IDs.
For example, here's how to track a visitor who has added products with the IDs 201 and 301 to a shopping cart. The IDs match the IDs for those products in the product catalog.
fbq('track', 'AddToCart',
// begin required parameter object
{
value: .5,
currency: 'USD',
content_type: 'product', // required property
content_ids: ['201', '301'] // required property, if not using 'contents' property
}
// end required parameter object
);
Get detail at: https://developers.facebook.com/docs/facebook-pixel/implementation/dynamic-ads/
Hi MS-WEB-DESIGNER,
Thanks for your response! I understand that the product IDs need to be sent via the pixel and must match the content_IDs in Facebook, and I've seen the Facebook support page you linked.
These instructions make it sound as though I need to manually input those product IDs, one by one, into the pixel code onto every single unique product page. We have over 400 products, so what I'm hoping for is that there's a way to do this automatically at scale. Is that possible?
Hope that makes sense!
Cheers
Hi MS-WEB-DESIGNER,
Just wanted to follow this one up and try to explain the issue again in case it's not clear. We've added the Facebook pixel to the account using the Facebook app in Shopify.
When a user initiates checkout, the custom parameters are set up automatically to send the product IDs to Facebook using the pixel as content_ids - see below:
However, this doesn't happen when a user views a product on the website, or adds it to their cart:
I'm hoping that there is an easy way to set up the View content event on the product pages so that the content ids are sent automatically when someone views products but doesn't initiate checkout.
Can you help at all?
Thanks so much.
Don't look at the PageView Event. That gets sent anytime the pixel is loaded. When someone views a product, the ViewContent event is what's "special" that recognizes it as a product view, and Shopify's native pixel event will include the content IDs in that event. I'm guessing you're also looking at the same thing with add to carts. Look at the AddToCart event.
Hi Josh_Uebergang, yes, the issue we were having is that the Shopify native pixel event wasn't sending the content IDs with the View Content or Add to Cart events. It was only sending them with Initiate Checkout and Purchase.
Anyway, we got a developer in who was able to set up those events manually for us.
Thanks
Hello everyone who has the same situation)!
1. This is the manual way:
Catch a hint, https://feed-product.com/help_center/how_configure.html
Now there in the application the full version is free for 60 days.
2. And this is an automatic option:
Prepared strategies
Automatic creation of advertising campaigns
Automatic pixel installation in the store
And other..
Here's a hint on how to do it automatically: https://feed-product.com/help_center/how_to_activate_automatic_setup_of_advertising_campaigns.html
Here is the link to the app: https://apps.shopify.com/feed-product-facebook-google
Experiment)
__________________________________________________________________________
★ Did my post help? If yes, then please like and accept solution. ★
romchy | Application consultant
Feed Product
→ Ask to launch an effective advertising campaign @ Write to Telegram
→ Get Free Guides for Store Sync @ Shopify Feed Product Help Center
→ Want to get new features? Add Feed product app to your store @ Add app Feed product
If you use the `Facebook & Instagram` app on Shopify to populate the collection on Meta then the `Content ID` on Meta equals to the `Variant ID` on Shopify. You can use this value in the code dynamically.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025