How to setup Facebook Pixel on Shopify Thank You page

ozonelk
New Member
4 0 0

I recently opened a store, installed Facebook Pixel on the website and added events using Events Setup Tool.

However, I just noticed that for Purchases event, I've added Complete Purchase button on the checkout page and it redirects to PayPal. I don't have Shopify Payment Gateway as I'm from a country which doesn't support here. PayPal is the only solution.

Firing a Purchase event for Complete Purchase Button is not the best indication for a Purchase as a customer may or may not complete the purchase (can drop off).

Now I want to add FB Pixel to Shopify Thank You page so that I can track actual purchases. How can I do this?

Replies 6 (6)
pvoulg
Shopify Partner
176 26 53

Hi @ozonelk,

You can either setup your whole Facebook tracking through the Facebook channel (see here), or add a Purchase event by going to Settings > Checkout, and placing your code inside the Additional Scripts section.

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )
ozonelk
New Member
4 0 0

@pvoulg wrote:

Hi @ozonelk,

You can either setup your whole Facebook tracking through the Facebook channel (see here), or add a Purchase event by going to Settings > Checkout, and placing your code inside the Additional Scripts section.


So without having to install the code separately, once I install Facebook app on Shopify, it automatically creates a Pixel and gets it installed on the Thank You page as well so that it tracks all conversions correctly?

pvoulg
Shopify Partner
176 26 53

Indeed it does, once you connect your Page/Ads Manager to the Facebook channel. It was launched recently, so the process might be a bit buggy, but if you set it up you don't need any other pixel code on your store, all of the standard commerce events will be sent automatically to your pixel tracking.

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )
sunildarji811
New Member
4 0 0

Is there any way to add "conversion API" endpoint with Facebook Channel plugin?

pvoulg
Shopify Partner
176 26 53

Sure @sunildarji811, just select Maximum from the levels, in the Customer data sharing tab, when you set it up.

 

 

Panos Voulgaris
Creative director / Partner @ MALVI
Founder @ function( )
sunildarji811
New Member
4 0 0

Thanks @pvoulg for quick response. 

But it only sent "Server Facebook API for "Purchase" event only. Is there any way to send all Browser fbq as a server API as well?