Meta Pixel Content Id issue

Hi there,

In our Meta Pixel events, Content ID is Variant ID of the product. Instead, it should be product ID from Shopify/Item Group ID from Meta Catalogue.

Does any one know how we can send Product Ids as Content IDs? in Meta Pixel events?

Right now we are facing this issue: The content ID wasn’t sent or it’s in an incorrect format. To help increase your content ID match rate, make sure that you are sending a valid content ID.

Thanks.

Hi @Galaxy12,

To send the product IDs as Content IDs in your Meta Pixel events, you can follow these steps:

Update Your Pixel Code: Ensure that your Meta Pixel code is set up to pull the product ID from Shopify. You need to modify the code to use the product_id instead of the variant_id. Here’s an example of how to do that:

javascript

fbq(‘track’, ‘ViewContent’, {
content_ids: [‘{{ product.id }}’], // Use the product ID here
content_type: ‘product’
});
Verify Your Product Catalog: Make sure your Meta Catalog is correctly set up and that the product IDs match those in your Shopify store. This can help ensure that the IDs are recognized correctly.

Test Your Events: Use the Facebook Events Manager to test your pixel events. This will show you if the correct content IDs are being sent and if there are any issues.

Debugging: If you still encounter issues, use the Facebook Pixel Helper Chrome extension. It can help you identify any problems with the pixel setup and display what data is being sent.

If you need further assistance or have any questions, feel free to ask! If you find this helpful, a like on the comment would be appreciated!

1 Like

Hey Thanks,

But we have not used any JavaScript code to install Pixel. We are using Facebook and Instagram channel. Then how to change the code you have mentioned?

Yes, I am using Meta Events Manger and Pixel Helper extension.

Await your reply :slight_smile:

1 Like

Hey, you’re not alone. This is a common issue with Shopify’s native Meta Pixel integration.

By default, Shopify sends the Variant ID as the content_ids parameter for Meta events like ViewContent, AddToCart, and Purchase. Unfortunately, this causes mismatch issues if your Meta Catalogue uses Product IDs or Item Group IDs instead.

Without coding, your cleanest option is to:

Sync your Shopify store with Meta Catalog using Facebook & Instagram by Meta app (official app).

Inside Commerce Manager, configure the content ID format to match Variant IDs, since that’s what Shopify sends.

Alternatively, if you must use Product IDs or Item Group IDs, you’d need to override Shopify’s pixel behavior, which requires custom pixel setup or GTM, so not a no-code route.

If you’re stuck or want it fixed without diving into technical steps, I handle Meta Pixel tracking setups and catalog syncing all the time, can set it up for better match rate and clean event tracking.

Let me know if you’d like help sorting it out.

1 Like

If you use the official Shopify-Facebook integration (i.e. What FB calls syncing from partner platforms), then Content ID field in Meta Catalog is set to Shopify’s Variant ID by default.

Also, I don’t think it’s possible to overwrite the Content ID field for the Shopify feed.

1 Like