Comments (2)
It would probably be better to pass a defer variable to the function, e.g.
public function inject_event( $event_name, $params, $method = 'track', $defer = false ) {}
Then when events are injected you can check if specific events need to be deferred, e.g.
$should_defer = 'yes' === get_option( 'woocommerce_cart_redirect_after_add', 'no' );
$this->pixel->inject_event( 'AddToCart', $event_data, 'track', $should_defer );
from facebook-for-woocommerce.
Thank you, @andytwl, for reporting this issue. Our team has a PR #2734 to address this issue. The fix should be available in our next release.
from facebook-for-woocommerce.
Related Issues (20)
- Update the readme.txt to meet WordPress requirements HOT 1
- WooCommerce 8.7 compatibility testing HOT 1
- $data['condition'] = 'new'; Hard coded with no way to change it. HOT 1
- Clean up / Remove deprecated code
- Smoke Test v3.1.13 HOT 1
- Message deprecation warning notices not removed after plugin deactivation
- Facebook Messenger - address PageSpeed Insights to lazy-load Messenger with facade before connecting. HOT 1
- Not able to login to my facebook account while configuring HOT 1
- WooCommerce 8.8 compatibility testing HOT 1
- Quantity to sell not syncing HOT 7
- Documentation cleanup. HOT 1
- Fully remove deprecated Messenger code HOT 1
- What is the status of WooCommerce to Meta sync? HOT 3
- Links from Facebook to translated products do not work
- Smoke Test 3.2.0
- Add WooCommerce as a plugin dependency to the plugin header
- Trigger purchase event on custom order status HOT 6
- WooCommerce 8.9 compatibility testing HOT 1
- Product Sets JS alert about excluded categories always displays
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-for-woocommerce.