How to Exclude Specific Product Data from Meta Pixel Tracking?

Solved

How to Exclude Specific Product Data from Meta Pixel Tracking?

TheRealNemo
Shopify Partner
8 1 0

Hello everyone,

I'm trying to find a way to exclude specific product data from being sent through Meta Pixel. We have a range of products that shouldn't appear in our analytics, yet they still show up. Here's what we've done so far:

  1. The products are not included in our Facebook catalog.
  2. We've excluded them from the Facebook sales channel entirely.

Despite these measures, whenever orders for these products are created through the Shopify Admin (manually), the product data seems to still get tracked by the Meta Pixel.

Is there a way to ensure these products are completely excluded from being tracked by the Meta Pixel? Any guidance or insights would be greatly appreciated!

Accepted Solution (1)

TheRealNemo
Shopify Partner
8 1 0

This is an accepted solution.

I solved the issue by checking every catalog in Facebook app, Events Manager and Business account. There was a difference between them

View solution in original post

Replies 8 (8)

Sam_Mahmud
Shopify Partner
295 9 18

Hi Therealnemo,

 

Thanks for your query.

 

If you use Facebook and Instagram app then you have nothing much to do.

 

If you configure the meta pixel then you can exclude that product from being tracked by exception trigger.

 

Feel free to ask if you have any questions.

 

Thanks

Your COFFEE TIP! Can Create something incredible!
Require Assistance with website design or enhanced conversion tracking Via Google Tag Manager GTM ?
sam.analyst4@gmail.com! or WhatsApp!
Solved? accept it as solution with like
TheRealNemo
Shopify Partner
8 1 0
Hi!

Thanks for the reply, does that mean I have to use the custom pixel?

DaisyVo
Shopify Partner
4385 486 579

Hi @TheRealNemo 

I completely understand your frustration—sometimes no matter how many steps you take, unwanted product data still finds its way into analytics. Let’s figure this out together. Here's what you can do to stop specific product data from being sent to your Meta Pixel:

1. Use Tag-Based Exclusions

Meta Pixel can be customized by using tags or conditional logic to exclude specific products. You’ll need a developer or someone familiar with coding to help with this:

  • In your theme, go to Online Store > Themes > Actions > Edit Code.
  • Find the template file where the Meta Pixel is implemented (commonly theme.liquid or checkout.liquid).

Add conditional logic to filter out the products. For example, use something like this in Liquid:

{% unless product.tags contains 'exclude_from_pixel' %}

  <!-- Meta Pixel tracking code -->

{% endunless %}

  • Apply a specific tag (e.g., "exclude_from_pixel") to the products you want to block.

2. Exclude Manual Orders with Custom Events

When orders are created manually in Shopify Admin, it’s likely they bypass your exclusion logic. To prevent this:

  • Customize your Meta Pixel event tracking to ignore manual orders. You’ll need to modify your event triggers to filter out these orders based on their source.

3. Block Products Using Meta Pixel Settings

If you’re using Meta’s Events Manager, you can apply rules to exclude certain data directly:

  • Go to Meta Events Manager > Data Sources > Your Pixel > Settings.
  • Create a rule in Data Filters to ignore specific parameters (like product names or IDs).
  • Ensure the rule targets the products causing issues.

4. Leverage a Third-Party App

Apps like Pixel Perfect or Trackify can provide more granular control over which products are tracked. These tools often allow you to exclude specific items directly through their settings without needing code changes.

5. Review Manual Orders Workflow

For orders created in Shopify Admin:

  • Check if those orders are triggering a separate tracking event. Some tracking scripts might be firing globally, bypassing the exclusions you've already set.
  • Implement an extra layer of logic to exclude orders created in Admin. For instance, identify and tag them automatically, then use that tag to filter tracking events.

Let me know if you’re stuck with any of these steps—I’m happy to guide you through. This process can take some fine-tuning, but it’s absolutely solvable.

If you need any other assistance, I am willing to help.
Best regards,
Daisy.






Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
liquivinyl
Tourist
3 0 2

Can you expand on how to exclude manual orders? We're having an issue where any time our manual/draft orders are made, Meta is counting them as conversions when they aren't. Really need to get these excluded ASAP!

TheRealNemo
Shopify Partner
8 1 0

There are several ways, I would need to know the store setup and what really is the problem to create a solution. If you use the customer events Meta Pixel then the only way to do this is by using catalogs (without any complex custom tracking logic solutions or some apps).

Sasha_Hlavinka
Visitor
2 0 0

Hello TheRealNemo,

I am also having the same issue. Can you expand on how to do this step by step. Thank you. 

TheRealNemo
Shopify Partner
8 1 0

This is an accepted solution.

I solved the issue by checking every catalog in Facebook app, Events Manager and Business account. There was a difference between them

masoomi-saxena
Shopify Partner
80 0 11

Hey there, 

You can try another thing. You can edit the code to exclude those specific products (do this if you're manually adding the code to theme file) - 

<script>
fbq('track', 'Purchase', {
content_ids: ["1234", "5678"], //remove the ids in this snippet
content_type: 'product',
value: 49.99,
currency: 'USD'
});
</script>

You can also use checkout additional scripts where you can stop the pixel code from tracking particular tags/IDs. Add this code snippet - 


{% if product.id != 1234 %}
<script>
fbq('track', 'Purchase', {
content_ids: ["{{ product.id }}"],
content_type: 'product',
value: {{ total_price | money_without_currency }},
currency: '{{ currency }}'
});
</script>
{% endif %}

 

Note: Do check for any indentation errors


I hope this helps 🙂 

Masoomi Saxena | Content Writer @ AdNabu


 - Was my reply helpful? Click Like to let me know! 


 - Was your question answered? Mark it as an Accepted Solution


 - Try our Nabu for Google Shopping Feed App from Shopify App Store.