Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello! I need help confirming whether Shopify has already set up Facebook Pixel event codes for my store. Specifically, I want to ensure that the Purchase event and other standard conversion events are being tracked correctly.
I installed the Facebook & Instagram Sales Channel app on Shopify, created a Meta Pixel, and connected it to the Conversion API. After this setup, I tried running an ad campaign but was prompted to configure events. As a result, I manually added event codes for events like AddToCart, InitiateCheckout, and AddPaymentInfo to my Shopify website. However, I did not add the event code for Purchase.
Today, I placed 4 test orders on my website, but the tracking data seems highly inaccurate. Meta reports show 9 Purchases, 23 AddPaymentInfo events, 102 InitiateCheckout events, and 44 AddToCart events. These numbers are impossible! I suspect Shopify might have already added the necessary event codes automatically via the Facebook & Instagram app. If this is the case, my manually added event codes may be causing duplicate tracking, which inflates the data. This could explain why the Purchase event, for which I did not add manual codes, seems more accurate compared to other metrics. Could you please help me resolve this issue? Thank you in advance for your assistance, and I look forward to your prompt response!
Hi Nia7,
Thanks for your query.
If you connect your Facebook and Instagram sales channel app with your meta pixel and conversion API then you don't need to add any code snippet manually.
Remove the codes you placed manually and test the events from events manager.
Feel free to ask if you have any questions.
Thanks
Yes, I figured it out today. I removed my events in Meta Event Setup tool, then I tested again shopping on my website and found that Meta still reported data. Thanks for your clarification! But I still have some problem with PayPal checkout button. I activated PayPal Express Checkout on my website, but Meta Pixel doesn't fire every time I click on buttons Pay with PayPal or PayPal. It doesn't regard clicking the PayPal button as a conversion event of InitiateCheckout. In order to solve the problem, I set up an event by using Meta's Event Setup tool but it still doesn't work. As you can see in the screenshots below, the event is set up. But when I click events on the page as the second screenshots shows, there's no event. And I noticed "This event fires when someone clicks a button with the text "#zoid paypal buttons uid bfb mdy mtm ndi position relative." in the first sceenshot, now I suspect it's possibly because of the weird text "#zoid paypal buttons uid bfb mdy mtm ndi position relative" that the event can't fire successfully. And since the text is automatically generated with a click of the PayPal button, it can't be modified. So I can't set up an event by doing so for PayPal checkouts. Is my guess true? And is there any way for me to record PayPal checkouts? Thank you again!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024