cancel
Showing results for 
Search instead for 
Did you mean: 

Facebook pixel not loading correctly in checkout

Facebook pixel not loading correctly in checkout

Hi.

Sorry if this is posted in the wrong topic or if this is not a Magento problem - Maybe someone can point me in the right direction.

I cannot get my pixel to load the right way in the checkout. At first, it loads the right way with the initiateCheckout event, but then it's like the page reloads and now it's just the pageview event.

 

Is there something I can do to solve this?

 

Thanks in advance!

/Daniel

2 REPLIES 2

Re: Facebook pixel not loading correctly in checkout

Hello @TONZR 

 

Please refer https://magento.stackexchange.com/a/215880/24801

 

I hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Facebook pixel not loading correctly in checkout

I've been digging some more.

 

The Facebook Pixel reloads if the URL doesn’t have hash #shipping, so if the URL is https://domain-name.com/checkout/#shipping then it works as expected, but if you click "to cart" though the mini cart then it goes first to https://domain-name.com/checkout/ and then quickly reloads as https://domain-name.com/checkout/#shipping afterward without the InitiateCheckout event. If you then manual reloads the page it loads again.

I have almost vanilla Magento 2 checkout, no third party checkout.

 

For the Facebook Pixel, I'm using this extension here: Apptrian Facebook Pixel Extension, but I have also tried with GTM - Same results.

 

I have no idea why this is happing. Anyone else having this issue?