Due to some reason i can’t add meta pixel to shopify by facebook&instagram app,i have to set it up manually,i have add the meta pixel code in theme.liquid and now i can track page view and add to cart at my website,but when i reach to the check out page,the pixel just didn’t work and i can not track sales
Hello,Sam_Mahmud,thank you for your kind reply. I have benefited a lot. If you don’t mind, I hope to get more help from you. How to add my meta pixel to check out page by customer event ?
I wish i could help you here.
As there are a bunch of technical processes to configure I am unable to explain everything A to Z.
I can summarize the process for you:
-
Configure a custom datalayer by creating a custom pixel so that Google Tag Manager can Pick the data of an event and send to tracking platforms like meta or GA4.
-
Create the datalayer variables like value, currency, transaction ID and User-provided data for event match quality.
variable name and keys
dlv - value - ecommerce.value
dlv - currency - ecommerce.currency
dlv - transaction_id - ecommerce.transaction_id
dlv - email - orderData.customer.billing.email
dlv - phone - orderData.customer.billing.phone
dlv - first name - orderData.customer.billing.first_name
dlv - last name - orderData.customer.billing.last_name
dlv - country - orderData.customer.billing.country
dlv - city - orderData.customer.billing.city
dlv - postal code - orderData.customer.billing.postcode
-
trigger the purchase event using the custom event trigger type
-
Create a Tag For purchase event and add the event parameters like content_name, content_id, content_type, order_id,
I hope this will help you to track the purchase event.
feel free to ask if you have any questions.
Thanks


