Fix value parameter for website AddToCart events from Meta Pixel

Hi,

I received this error from Pixel diagnostics result.

In order to resolve this, I have to add update the “value” field and “currency” field inside the event parameter, however I could not find the way to update it in the app setting or theme code.

Can someone give me the right direction?

Thanks

1 Like

Hello @azieaziz14

Thanks for sharing the screenshots. Here’s a breakdown of what’s happening and how to fix it for your Meta Pixel events:

Problem Summary
Your Pixel diagnostics show that:

  1. AddToCart events are missing the correct value parameter 38% of the time.

  2. PageView events are missing the currency parameter 100% of the time.

  3. ViewContent events are missing the correct value parameter 74% of the time.

These missing parameters degrade ad performance and optimization in Meta (Facebook) ads.

How to Fix It in Shopify (No Manual Code Needed in Most Cases)
Since you mentioned you’re using Shopify and can’t find these settings in your app or theme code, you’re likely using the native Facebook & Instagram app integration by Meta. In that case:

  1. Check Meta Pixel App Settings in Shopify
    1.Go to Shopify Admin > Settings > Apps and sales channels > Facebook & Instagram.

  2. Click Settings under the Meta Pixel section.

  3. Ensure:

. The correct Pixel ID is connected.

. The Advanced Matching and Automatic Event Tracking features are enabled.

  1. Test Events Using Meta Events Manager
    . Go to Meta Events Manager

. Select your Pixel

. Use the Test Events tab to visit your store in a separate tab and verify if value and currency show in:

. PageView

. AddToCart

. ViewContent

  1. Fix via Code (Only if Shopify App Doesn’t Handle It)
    If you’re not using the Meta Facebook app or using a custom pixel setup, you can edit the Pixel manually in the theme:

Example for AddToCart (in theme.liquid or a custom JS file):

fbq('track', 'AddToCart', {
  value: {{ product.price | money_without_currency | replace: ',', '' }},
  currency: 'USD'
});

Example for ViewContent:

fbq('track', 'ViewContent', {
  value: {{ product.price | money_without_currency | replace: ',', '' }},
  currency: 'USD'
});

Pro Tip:
Always use:

. value: a number (e.g., 19.99)

. currency: a 3-letter ISO code (e.g., USD, CAD)

Thank you :blush: