woocommerce / facebook-for-woocommerce

A first-party extension plugin built for WooCommerce. Development is managed by Ventures.
https://woocommerce.com/products/facebook/
GNU General Public License v2.0
211 stars 138 forks source link

Facebook pixel firing only PageView event on all pages #857

Closed akashprakash93 closed 4 years ago

akashprakash93 commented 5 years ago

I'm facing this problem on my woocommerce store. I've installed the pixel ID using the official Facebook pixel plugin but the pixel is only firing the PageView event. Even if I add to cart or go to the checkout page or complete the purchase, it's only firing the PageView event. Can you please help?

Pixel ID: 1332706736829932

image

As you can see, I'm on the checkout page and only the PageView event is fired. The standard events (Add to cart, Initiate checkout, Purchase etc.) are set up by default right? Is there something I need to do?

jameskim0903 commented 5 years ago

Automated Support Message

Hello,

Thanks for your interest in our plugin! Our developer team tries to provide personal support on GitHub whenever possible.

If you have a feature request or feedback for the developers, reply with Feature Request or Feedback. If you are a developer or have a question for the developers related to code, reply with Developer Question. If you are running ads with us, reply with Advertiser.

If you have encountered a bug or a problem with the plugin, keep reading for information that can help you resolve the issue yourself or provide us details we need to help you.

Search Existing Issues

First, please search our issues to see if your problem has been reported before. There may already be a workaround or a solution to your problem. You can use the search bar near the top of our issues page. Be sure to search both open and closed issues. If you do find a similar issue, leave a comment on that issue instead of creating a new one. Your comment helps us prioritize which existing issues are important and urgent.

Common Resolution Methods

If you are experiencing a problem or bug and have not found any similar issue, please try the following:

Necessary Information

If the above steps did not help, please provide the following information in your next comment in order for us to debug your problem:

Please include Debug Ready in your reply so our automated system can note your issue for manual review. Please be aware that due to a high volume of issues, we may not be able to respond immediately.

Response Time

We prioritize issues with the tags Advertiser or Multiple Reports. For issues that have the tags Debug Ready, Feature Request or Developer Question, we aim to respond within 30 days.

If you have not responded to our automated message with one of the above phrases, such as Debug Ready, we may close your issue after 30 days. If a Feature Request is inactive (without new requests, messages or pull requests) for 6 months, we may close it.

Please note that we are not always able to provide support for issues related to interaction from other plugins with this plugin or related to the Facebook advertising interface. To get support related to Facebook ads, try visiting the Facebook Ads Help Center.

For more information on our response times, visit Facebook Support on GitHub.

Thank you, The Facebook Dev Team

condor304 commented 5 years ago

I have the same problem. I'm using facebook for woocommerce plugin and all I can see are pageview events. Nothing else. And I'm running ads using this pixel and of course no conversion is fired so I guess no optimization is happening.

akashprakash93 commented 5 years ago

Please find the required details below:

WooCommerce version: Version 3.5.4 WordPress version: Version 5.0.3 Plugin version (please note: we only support up-to-date versions of the plugin): Official Facebook Pixel Version 1.7.23 The URL of your website: https://boringstoreonline.com The URL of your Facebook Page: https://facebook.com/boringstoreonline The URL(s) of where you took your screenshot(s): https://boringstoreonline.com/checkout/

Debug Ready

condor304 commented 5 years ago

For me the problem was the jquery loading after the pixel code - I had moved the scripts in the footer for performance. but you must load jquery on the header because both fb pixel and google analytics use it. Check the console of the browser if you see a jquery missing error that is your fix.

and you should also upgrade the plugin to the latest version.

lgfogle commented 4 years ago

Hey there! 👋

Lindsey here, from the SkyVerge product team! We recently took over development and support for the Facebook for WooCommerce extension.

In our recent 1.10 releases, we've fixed many issues impacting the store connection, pixel tracking, and product sync. Could you please update to the latest version of Facebook for WooCommerce and see if that resolves this issue?

If not, could you please contact our support team or open a new issue here? We'd be happy to help troubleshoot further with you.

Thank you!

lgfogle commented 4 years ago

Hey there! 👋

Lindsey here, from the SkyVerge product team! We recently took over development and support for the Facebook for WooCommerce extension.

In our recent 1.10 releases, we've fixed many issues impacting the store connection, pixel tracking, and product sync. Could you please update to the latest version of Facebook for WooCommerce and see if that resolves this issue?

If not, could you please contact our support team or open a new issue here? We'd be happy to help troubleshoot further with you.

Thank you!

fabiograsso commented 4 years ago

Hello there, I'm facing the same issue: Facebook pixel is loaded but no events are sent. Not only the pageView events but also other events like checkout, addToCart, initiatedCheckout and so on

After investing I've found out that this is due to my Cookie blocking solution. I'm using iubenda – Cookie and Consent Solution for the GDPR & ePrivacy. They deactivate the script by changing the HTML code with: <script type="text/plain" class="_iub_cs_activate-inline"> Then, after user accept the cookie banner, all the scripts are loaded by their Javascript.

This works fine for almost all plugins and themes but there is something in Facebook for Woocommerce that's mading this not working as expected.

In fact Iubenda plugin change the HTML code for the Pixel load, but doesn't change the code for the event generator. This mean that events are triggered BEFORE the Pixel JS is loaded.

I will ask to Iubenda support in order to fix this.

Maybe other people that are facing this issue are using some kind of script blocking plugin, like mine for manage Cookie law.