Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Purchase and InitiateCheckout pixel events not fired #82

Closed
shue249 opened this issue Dec 29, 2018 · 29 comments
Closed

Purchase and InitiateCheckout pixel events not fired #82

shue249 opened this issue Dec 29, 2018 · 29 comments

Comments

@shue249
Copy link
Contributor

shue249 commented Dec 29, 2018

Posting on behalf of papke88

@shue249 Just tried updated extension, looks like it works fine, just cant track the pixel on success page, the pixel helper do not show it. Can you check it?

Success page is here
cr7shop.lt/atsiskaitymas-sekmingas

also cant see the pixel "checkout initianed"

@papke88
Copy link

papke88 commented Jan 1, 2019

Hello @shue249 , any news omn this issue?

@shue249
Copy link
Contributor Author

shue249 commented Jan 5, 2019

@papke88 Apologies for the late reply. Can we understand if you are using any 3rd party checkout modules? Our pixel event for InitiateCheckout and Purchase is supporting the default OpenCart checkout module.

@papke88
Copy link

papke88 commented Jan 5, 2019 via email

@shue249
Copy link
Contributor Author

shue249 commented Jan 5, 2019

@papke88 I see that your checkout and thank you URL is different from the OpenCart default ones. In the default URL, it will follow something like "index.php?route=checkout/checkout".

Are you using any SEO mapping to change the checkout and payment URL on your website?

image

@papke88
Copy link

papke88 commented Jan 5, 2019 via email

@papke88
Copy link

papke88 commented Jan 7, 2019

Hello @shue249, can i get a fix for this problem?

@shue249
Copy link
Contributor Author

shue249 commented Jan 9, 2019

@papke88 We will look into this. Can I understand how do you use the seo tool to setup the friendly URLs, so I am not familiar with this SEO tool.

@papke88
Copy link

papke88 commented Jan 9, 2019 via email

@papke88
Copy link

papke88 commented Jan 15, 2019

hello @shue249 , any news on this issue?

@shue249
Copy link
Contributor Author

shue249 commented Jan 17, 2019

@papke88 Apologies for the late reply. As it is a 3rd party extension, we may need more time to figure how best to support this feature.

In the meantime, you may want to try to make some changes on our plugin code to be able to send in the events. However, that will require you to have access to development skills. Will you be open to that?

@papke88
Copy link

papke88 commented Jan 17, 2019 via email

@papke88
Copy link

papke88 commented Jan 21, 2019

@shue249 i am waiting for your directions, thanks!

@shue249
Copy link
Contributor Author

shue249 commented Jan 23, 2019

@papke88 Can you try putting in the below code lines to this file at line 188 on your server.
https://github.com/facebookincubator/Facebook-For-OpenCart/blob/master/upload/catalog/controller/extension/facebookeventparameters.php#L188

Code lines to be added:

$uri = $_SERVER['REQUEST_URI'];
if (strcmp($uri, '/atsiskaitymas-sekmingas') == 0) {
  $facebook_pixel_event_params_fae = $this->getPurchaseEventParameters();
}
if (strcmp($uri, '/atsiskaitymas') == 0) {
  $facebook_pixel_event_params_fae =
      $this->getInitiateCheckoutEventParameters();
}

After adding the changes, you can try to make a mock purchase and verify if the InitiateCheckout and Purchase events are successfully fired on your website using the PixelHelper.

@papke88
Copy link

papke88 commented Jan 24, 2019

@shue249 hello, added the code using your directions, but pixels are not fired...

@papke88
Copy link

papke88 commented Jan 27, 2019

Hello @shue249, any news?

@shue249
Copy link
Contributor Author

shue249 commented Jan 30, 2019

@papke88 Apologies for the delay. We are still checking on this, pls do give us more time and will update you soonest.

@papke88
Copy link

papke88 commented Jan 30, 2019

@shue249 ok thanks, hope to get the solution soon, we cant advertise without pixels on those pages

@papke88
Copy link

papke88 commented Jan 31, 2019

@shue249 hello, any news on this issue?

@shue249
Copy link
Contributor Author

shue249 commented Feb 2, 2019

@papke88 Thank you for the patience and apologies for the delay.

We have some initial findings and we want to cross-check with your configuration setup to verify if the findings tally. We like to understand more on how you do the configuration on the SEO editor. Will you be able to share screenshots of your SEO configuration. Please remove away any sensitive information from the screenshot.

In particular, we are looking for the below sample examples for the absolute URL and common page URL. Apart from these 2 settings, are you using any other settings and can you share these settings with us?
image
image

@papke88
Copy link

papke88 commented Feb 2, 2019

Hello @shue249 , here are the screen shots of common page url settings for both LT and US language on the site. Do you need anything else?
screen shot 2019-02-02 at 10 37 36
screen shot 2019-02-02 at 10 37 18

@papke88
Copy link

papke88 commented Feb 2, 2019

all other settings is default ones, nothing special there that could effect your module i think... the main thing that affects your module i think is friendly urls...

@shue249
Copy link
Contributor Author

shue249 commented Feb 2, 2019

@papke88 Thanks for the fast response. Your screenshots have confirmed the same findings as us.

On the SEO editor plugin, we found 2 possible ways to setup the SEO URL - common page URL or absolute URL.

If we use the common page URL, we are able to replicate the exact same problem as what you are facing. See the screenshot on our test servers for the checkout, thank you and shopping cart pages.
image

However, if we switch to use the absolute URL (and retaining the exact same settings), the pixels are able to fire correctly. The below screenshot is using the absolute url on our test servers.
image
image
image

Based on our test and findings, we can conclude that Absolute URL is compatible with our plugin and Common page URL is having some incompatibility issues.

We will be taking more time to dig into coming out with a proper solution that will make our plugin compatible with both Absolute URL and Common page URL, and release the fix when its ready.

In the meantime, do you think you can switch to use the Absolute URL? (this is based on the premise that Absolute URL works properly and firing the pixels on your server. If Absolute URL does not work, we need to dig deeper to determine where could the issue be) Will there be any concerns from your side? Will love to hear your thoughts.

@papke88
Copy link

papke88 commented Feb 2, 2019 via email

@shue249
Copy link
Contributor Author

shue249 commented Feb 3, 2019

@papke88 As we are not the developers for the SEO editor plugin, we are not in the best position to be able to explain the differences between the absolute and common URLs. Perhaps you may want to check in with the developers to understand the differences. Off the hand from their plugin site, it offers a very high level explanation.
image

To the best of my understanding, both absolute and common urls should work in the same way for your use case. However, it may be good to double confirm with the developers to be sure.

From SEO side, I will say it does not matter to them. For SEOs, only the url string matters. They do not care how the implementation code looks like, ie be it common url or absolute url or some other implementation methods..

@papke88
Copy link

papke88 commented Feb 3, 2019 via email

@shue249
Copy link
Contributor Author

shue249 commented Feb 23, 2019

@papke88
We have released a latest version of the plugin, v2.1.4 and can be downloaded from OpenCart marketplace or our github. The new version will resolve the issue with SEO URL.

https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=32336
https://github.com/facebookincubator/Facebook-For-OpenCart/releases/tag/v2.1.4

We will close out this ticket for now, but pls do reach to us if you still have any further questions or issues.

@shue249 shue249 closed this as completed Feb 23, 2019
@papke88
Copy link

papke88 commented Feb 23, 2019 via email

@garbinmarcelo
Copy link

Hi, I have version 3.0.3.1 (Brasil 1.2.4), with this issue of not registering the checkout and purchase part in the Facebook pixel. Installing this Facebook extension will solve it? Any suggestion? Thanks

@yao-tx
Copy link
Contributor

yao-tx commented Dec 12, 2021

Hi @garbinmarcelo

Facebook Business Extension plugin for OpenCart versions 3.1.2 and below has been deprecated and support will not be provided for those versions. That being said, if you are only having issues with Checkout and Purchase Pixel Events, it is usually caused by custom checkout extensions causing the FB plugin to be unable to register the Checkout and Purchase Events.

Adjustments to the extension will have to be made to accommodate custom checkout extensions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants