-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for add to cart pixel on ajax add to cart #2
Comments
We definitely don't fire the pixel on AJAX add to cart. We could support this in the future based on demand for this feature, it would be a big change for us though. |
I ended up writing it into my own plugin. I don't have time for a PR right now, but I could probably paste some snippets of you wanted. |
Definitely interested in how you solved this! Would love to see some snippets. |
Pulling very heavily from your plugin, I added some code into the "base pixel" that fires a second little ajax request when the ajax add to cart JS trigger fires That builds the new pixel event and sends it back to the script to be injected in the Hope that helps! |
Thanks for that! I would definitely like to set aside some time to merge this into our repo but we're dealing with a large number of bugs right now. If you ever have time to send that PR we could review it pretty quickly though! Please consider it. |
Fix critical issues in facebook-for-woocommerce.php
…-fixes Improve tracking consistency of AddToCart and ViewContent events
The parameter at position #2 of get_terms() has been deprecated since WordPress version 4.5.0.
The pixel doesn't seem to fire after an item has been added to the cart asynchronously from the archive pages.
The text was updated successfully, but these errors were encountered: