How to send content_IDs with facebook pixel

Callumnoel
New Member
4 0 0

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?

Callumnoel_0-1610493188578.png

Any help at all is hugely appreciated. Thanks!

 

Replies 6 (6)
MS-WEB-DESIGNER
Shopify Partner
3012 181 488

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/

Click Here to Hire Shopify Store Customization Experts
Boost Conversions & Average Order Value with this
Best App for Sticky Add To Cart
Callumnoel
New Member
4 0 0

 Hi 

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

Callumnoel
New Member
4 0 0

Hi

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:

1.PNG

However, this doesn't happen when a user views a product on the website, or adds it to their cart:

2.PNG

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.

Josh_Uebergang
Shopify Expert
853 30 214

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.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
Callumnoel
New Member
4 0 0

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

romchy
Shopify Partner
128 0 27

Hello everyone who has the same situation)!

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

__________________________________________________________________________
★ 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 WhatsApp:
https://chat.whatsapp.com/GOWhsfPriq5K6hgBJJWTNm

→ Get Free Guides for Store Sync @ Shopify Feed Product Help Center:
https://apps.shopify.com/feed-product-facebook-google

→ Want to get new features? Add Feed product app to your store @ Add app Feed product:
https://apps.shopify.com/feed-product-facebook-google