Multiple Purchase events in FB Pixel

Hi all,

I have a problem with my fb pixel. It registers multiple purchase events. The same order is tracked twice or more sometimes with an item array and sometimes without an item array.

We implement the FB pixel via GTM and have an extended datalayer push within the checkout script section. We have named this event different than “purchase” because we thought that this was the problem. But is doesn’t seem to be. Also set gtm to fire once per page.

Is there anyone with a comparing situation that could help?

Hey @TeunSB ,

In case you are sending your data-layer to GTM from the custom checkout script section. Make sure to wrap the data-layer code in :

{% if first_time_accessed %}
  // Conversion scripts you want to run only once
{% endif %}

Otherwise, whenever a customer visits their order confirmation page, the meta pixel will get triggered and would log multiple purchases.

Reference: https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status/first-time-accessed

Hi I am using the native shopify app integration, but it is still firing 2 to 3 times. Can it be fixed using the native integration?