Duplicated Add to Cart Events and invalid parameters sent from server
-
Hello,
in the last month we noticed that there has been a huge problem in the way facebook pixel is tracing the statistics and the events generated by users our website particularly statistics regarding “server events” which are largely inaccurate, approximately 1 “browser event” (which is real comparing to google analytics data) every 500 “server events”.The mismatch is causing problem with the optimization of our campaigns on facebook/instagram.
Using the facebook pixel helper on google chrome we are unable to debug and the event parameter tracing seems to work properly.We also received this alert in the facebook business manager “Your server is sending an invalid parameters value for your AddToCart event. This may be because there was an error in the parameter value. This may cause issues with the attribution and delivery optimization of ad campaigns that are using this event”
Every plugin on our site has been updated to hte lates release but it didnt solve anything
Is there a way to understand what parameter is wrong and how to avoid server events duplication? Is there a way to understand where this huge amount of duplicated “server events” come from and optimize the deduplication of the server events only? I see no option regardin this both in the Facebook Manager nor in the plugin options
Hope someone can point us in the right direction to solve the problem.
Thanks for you supportThe page I need help with: [log in to see the link]
-
Hi there,
Could you share your System Status Report, it would help us to understand your site setup a bit better. You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, paste it here in your reply.
### WordPress Environment ### WordPress address (URL): https://www.epele.it Site address (URL): https://www.epele.it WC Version: 5.6.0 REST API Version: ✔ 5.6.0 WC Blocks Version: ✔ 5.5.1 Action Scheduler Version: ✔ 3.2.1 WC Admin Version: ✔ 2.5.1 Log Directory Writable: ✔ WP Version: 5.8.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: it_IT External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.23 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1l-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 5.6.0 WC Database Prefix: ep19_ Dimensione totale database: 94.04MB Dimensione dati database: 80.95MB Dimensione indice database: 13.09MB ep19_woocommerce_sessions: Dati: 27.09MB + indice: 0.88MB + motore MyISAM ep19_woocommerce_api_keys: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_attribute_taxonomies: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_downloadable_product_permissions: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_order_items: Dati: 0.21MB + indice: 0.12MB + motore MyISAM ep19_woocommerce_order_itemmeta: Dati: 1.80MB + indice: 1.22MB + motore MyISAM ep19_woocommerce_tax_rates: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_tax_rate_locations: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_shipping_zones: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_shipping_zone_locations: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_woocommerce_shipping_zone_methods: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_payment_tokens: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_payment_tokenmeta: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_log: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_actionscheduler_actions: Dati: 0.27MB + indice: 0.13MB + motore MyISAM ep19_actionscheduler_claims: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_actionscheduler_groups: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_actionscheduler_logs: Dati: 0.28MB + indice: 0.19MB + motore MyISAM ep19_aepc_custom_audiences: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_aepc_logs: Dati: 0.08MB + indice: 0.00MB + motore MyISAM ep19_commentmeta: Dati: 0.03MB + indice: 0.03MB + motore MyISAM ep19_comments: Dati: 0.72MB + indice: 0.29MB + motore MyISAM ep19_duplicator_packages: Dati: 0.12MB + indice: 0.00MB + motore MyISAM ep19_ee_products_sync_list: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ep19_ee_product_sync_call: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ep19_ee_product_sync_data: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ep19_icl_string_batches: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ep19_icl_translation_downloads: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ep19_links: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_options: Dati: 5.19MB + indice: 0.21MB + motore MyISAM ep19_postmeta: Dati: 33.07MB + indice: 5.73MB + motore MyISAM ep19_posts: Dati: 3.09MB + indice: 0.98MB + motore MyISAM ep19_post_views: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_revslider_css: Dati: 0.09MB + indice: 0.01MB + motore MyISAM ep19_revslider_css_bkp: Dati: 0.09MB + indice: 0.00MB + motore MyISAM ep19_revslider_layer_animations: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_revslider_layer_animations_bkp: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_revslider_navigations: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_revslider_navigations_bkp: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_revslider_sliders: Dati: 0.04MB + indice: 0.00MB + motore MyISAM ep19_revslider_sliders_bkp: Dati: 0.04MB + indice: 0.00MB + motore MyISAM ep19_revslider_slides: Dati: 1.16MB + indice: 0.00MB + motore MyISAM ep19_revslider_slides_bkp: Dati: 1.46MB + indice: 0.00MB + motore MyISAM ep19_revslider_static_slides: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_revslider_static_slides_bkp: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_smush_dir_images: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_termmeta: Dati: 0.10MB + indice: 0.08MB + motore MyISAM ep19_terms: Dati: 0.02MB + indice: 0.05MB + motore MyISAM ep19_term_relationships: Dati: 0.31MB + indice: 0.67MB + motore MyISAM ep19_term_taxonomy: Dati: 0.03MB + indice: 0.05MB + motore MyISAM ep19_usermeta: Dati: 0.43MB + indice: 0.25MB + motore MyISAM ep19_users: Dati: 0.02MB + indice: 0.03MB + motore MyISAM ep19_wc_admin_notes: Dati: 0.02MB + indice: 0.00MB + motore MyISAM ep19_wc_admin_note_actions: Dati: 0.01MB + indice: 0.00MB + motore MyISAM ep19_wc_category_lookup: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_wc_customer_lookup: Dati: 0.05MB + indice: 0.05MB + motore MyISAM ep19_wc_download_log: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_wc_order_coupon_lookup: Dati: 0.01MB + indice: 0.01MB + motore MyISAM ep19_wc_order_product_lookup: Dati: 0.28MB + indice: 0.25MB + motore MyISAM ep19_wc_order_stats: Dati: 0.05MB + indice: 0.04MB + motore MyISAM ep19_wc_order_tax_lookup: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_wc_product_meta_lookup: Dati: 0.09MB + indice: 0.11MB + motore MyISAM ep19_wc_reserved_stock: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_wc_tax_rate_classes: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_wc_webhooks: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_woocommerce_bundled_itemmeta: Dati: 0.06MB + indice: 0.05MB + motore MyISAM ep19_woocommerce_bundled_items: Dati: 0.00MB + indice: 0.00MB + motore MyISAM ep19_wpr_rucss_resources: Dati: 0.02MB + indice: 0.06MB + motore InnoDB ep19_wpr_rucss_used_css: Dati: 0.02MB + indice: 0.05MB + motore InnoDB ep19_yith_wcwl: Dati: 0.25MB + indice: 0.14MB + motore MyISAM ep19_yith_wcwl_lists: Dati: 0.27MB + indice: 0.27MB + motore MyISAM ep19_yoast_indexable: Dati: 3.70MB + indice: 0.68MB + motore MyISAM ep19_yoast_indexable_hierarchy: Dati: 0.07MB + indice: 0.25MB + motore MyISAM ep19_yoast_migrations: Dati: 0.00MB + indice: 0.01MB + motore MyISAM ep19_yoast_primary_term: Dati: 0.07MB + indice: 0.09MB + motore MyISAM ep19_yoast_seo_links: Dati: 0.12MB + indice: 0.04MB + motore MyISAM ep19_yoast_seo_meta: Dati: 0.02MB + indice: 0.02MB + motore MyISAM ### Post Type Counts ### attachment: 6474 gsf_content: 90 gsf_template: 10 ig_campaign: 10 ig_message: 13 mc4wp-form: 1 nav_menu_item: 100 oembed_cache: 1 page: 30 post: 16 product: 1205 revision: 107 shop_coupon: 35 shop_order: 685 shop_order_refund: 23 wpcf7_contact_form: 2 xmenu_mega: 1 yith_wcan_preset: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (32) ### April Framework: by g5plus – 4.9 Classic Editor: by Contributori WordPress – 1.6.2 Classic Widgets: by WordPress Contributors – 0.2 Contact Form 7: by Takayuki Miyoshi – 5.4.2 Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.1.3 Duplicator: by Snap Creek – 1.4.2 Enhanced E-commerce for Woocommerce store: by Tatvic – 4.1.3 Facebook for WooCommerce: by Facebook – 2.6.4 Icegram - Popups, Optins, CTAs & lot more...: by icegram – 2.0.3 WPBakery Page Builder: by Michael M - WPBakery.com – 6.7.0 Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.23.1 Loco Translate: by Tim Whitlock – 2.5.3 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6 Post Views Counter: by Digital Factory – 1.3.5 Really Simple SSL: by Really Simple Plugins – 5.1.0 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Slider Revolution: by ThemePunch – 6.5.6 SiteGround Optimizer: by SiteGround – 5.9.6 User Role Editor: by Vladimir Garagulya – 4.60.1 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.9 WooCommerce Stripe Gateway: by WooCommerce – 5.4.1 WooCommerce Product CSV Import Suite: by WooCommerce – 1.10.41 WooCommerce: by Automattic – 5.6.0 Yoast SEO: by Team Yoast – 17.1 Smush: by WPMU DEV – 3.9.0 WhatsApp Chat PRO: by QuadLayers – 2.5.5 Social Chat: by QuadLayers – 4.9.4 YITH Pre-Order for WooCommerce: by YITH – 1.3.6 YITH WooCommerce Ajax Product Filter: by YITH – 4.1.1 YITH WooCommerce Brands Add-on: by YITH – 1.5.1 YITH WooCommerce Compare: by YITH – 2.5.4.1 YITH WooCommerce Wishlist: by YITH – 3.1.0 ### Inactive Plugins (8) ### Akismet Anti-Spam: by Automattic – 4.1.12 G5Plus Post Like: by g5plus – 1.0 Hello Dolly: by Matt Mullenweg – 1.7.2 WP Instagram Widget: by Scott Evans – 2.0.3 WP Mail SMTP: by WPForms – 3.0.3 WP Rocket: by WP Media – 3.9.2 WP Rocket | WooCommerce Recently Viewed Products Widget Integration: by WP Rocket Support Team – YITH WooCommerce Catalog Mode: by YITH – 2.0.16 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: ✔ Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude_from_catalog (exclude_from_catalog) exclude_from_search (exclude_from_search) exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) visible (visible) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #17 - /shop/ Carrello: #18 - /cart/ Pagamento: #19 - /checkout/ Il mio account: #20 - /my-account/ Termini e condizioni: #743 - /condizioni-di-vendita/ ### Theme ### Name: G5Plus April Child Theme Version: 1.0 Author URL: http://g5plus.net Child Theme: ✔ Parent Theme Name: G5Plus April Parent Theme Version: 5.4 Parent Theme Author URL: http://g5plus.net/ WooCommerce Support: ✔ ### Templates ### Overrides: g5plus-april/woocommerce/archive-product.php g5plus-april/woocommerce/cart/cart-shipping.php g5plus-april/woocommerce/cart/cart-totals.php g5plus-april/woocommerce/cart/cart.php g5plus-april/woocommerce/cart/cross-sells.php g5plus-april/woocommerce/cart/mini-cart.php g5plus-april/woocommerce/cart/shipping-calculator.php g5plus-april/woocommerce/checkout/form-checkout.php g5plus-april/woocommerce/content-product.php g5plus-april/woocommerce/content-single-product.php g5plus-april-child/woocommerce/emails/admin-new-order.php g5plus-april/woocommerce/global/quantity-input.php g5plus-april/woocommerce/global/wrapper-end.php g5plus-april/woocommerce/global/wrapper-start.php g5plus-april/woocommerce/loop/loop-end.php g5plus-april/woocommerce/loop/loop-start.php g5plus-april/woocommerce/loop/no-products-found.php g5plus-april/woocommerce/loop/rating.php g5plus-april/woocommerce/loop/result-count.php g5plus-april/woocommerce/loop/sale-flash.php g5plus-april/woocommerce/single-product/product-image.php g5plus-april/woocommerce/single-product/related.php g5plus-april/woocommerce/single-product/title.php g5plus-april/woocommerce/single-product/up-sells.php g5plus-april/woocommerce/single-product.php g5plus-april/woocommerce/content-product_cat.php ### Action Scheduler ### Completato: 1.136 Oldest: 2021-09-14 16:38:51 +0200 Newest: 2021-09-15 20:29:29 +0200 In attesa: 1 Oldest: 2021-09-16 19:38:50 +0200 Newest: 2021-09-16 19:38:50 +0200 ### Status report information ### Generated at: 2021-09-15 21:23:58 +02:00
Hello @sirio345
Thanks for your response!
These errors appear to be about a known bug that has been reported to the Facebook for WooCommerce developers. You can learn more about this bug here: https://github.com/facebookincubator/facebook-for-woocommerce/issues/1777
The recommended steps for getting around this issue are the following:
* Check that your pixel is connected. This Chrome extension created by Facebook will verify that your Facebook pixel is working properly.
* Make sure there aren’t any browser extensions blocking Facebook user agent and IP addresses
*Enable debug logging and see if you are getting any obviously errorsIf this does not work to resolve the problem, I would recommend enabling logging in the extension:
Head to Marketing > Facebook. And enable debug mode at the bottom of the screen and save the settings After this, repeat the steps to replicate the error.
Thank you!
Hello thanks for the response I checked the thread on git hub and followed every step you suggested. Consider also that we already enabled the “debug logging” into the facebook for woocommerce plugin settings to see if there were obvious errors. The log is extremely long but apparently the are not obvious errors or warnings. Can you specify what kind of error I’d have to check for in the log?
If you prefer I can share the complete log.Hi again,
Is there a way to understand what parameter is wrong and how to avoid server events duplication?
In general I would also try and disable all caching. That can also effectively derail analytics and other tracking events. I can see you SiteGround Optimizer: by SiteGround – 5.9.6 active. This also adds caching, correct?
The log is extremely long but apparently the are not obvious errors or warnings. Can you specify what kind of error I’d have to check for in the log?
If you prefer I can share the complete log.Yes, typically it would be one of these: https://www.facebook.com/business/help/490934944618455?id=1205376682832142 – for example missing event name or duplicate event detected, that would cause a fumble.
If you prefer I can share the complete log.
Sure, I would recommend something like: https://justpaste.it or similar. You can also let content uploaded there expire: https://d.pr/i/8KguTw
Kind regards,
Hello again, regarding the cache it is one of the first thing we checked. WP rocket has been disabled for over two weeks now and also the Siteground optimizer has all the settings deactivated so it shold not interfere. Anyway to be sure I have now deactivated also SG optimizer plugin.
here is the link with one of the latest facebook for woocommerce log
https://justpaste.it/ls/8yu5i/rad4ybx90vcm495whope this can help
regardsHowdy,
Hello again, regarding the cache it is one of the first thing we checked. WP rocket has been disabled for over two weeks now and also the Siteground optimizer has all the settings deactivated so it shold not interfere. Anyway to be sure I have now deactivated also SG optimizer plugin.
Gotcha. We have had cases where remnant cached files were still being served. If you can have a look around via FTP maybe as well. For example: https://docs.wp-rocket.me/article/133-manually-clear-wp-rocket-cache – screenshot: https://d.pr/i/TmmKTa
here is the link with one of the latest facebook for woocommerce log
Thank you. That does look good like you said. You are on the most recent plugin version, the correct API version. There is only some minor errors such as:
body: {"error":{"message":"(#100) Could not find Product Item for catalog id
which should correct itself. That all looks ok to me.Let’s turn back to your initial remark: “Is there a way to understand where this huge amount of duplicated “server events” come from and optimize the deduplication of the server events only?”
Could you post that server events list + browser events list that made you check on this in the first place? Maybe something sticks out.
Kind regards,
Hello again,
Regarding the cache I deleted all the wp rocket cache folder and deactivated SG plugin let’s see if something change.
Regarding server events list apparently from facebook there is no way to see or export that list.
We only have a metric that indicate that the quality of event correspondance is very very low and can interfere with the results of the campaign (and it does impact the results, because since the problem first appeared the results of the ads campaign are very very bad)
here is a link to see the screenshot from facebook
https://justpaste.it/ls/92vjo/mxlw399i8x31fdl8
consider that of 602 add to cart events only 4 were from browser and true according to google analitycs data.
That metric changes from time to time one day is for add to cart events the other form search events. The problem is always a huge numer of server events compared to browser events.
In the facebook business manager they suggest to keep high the percentage of “deduplication” of the events but does not give insights on how to configure that parameter. Actually the deduplication percentage is around 14% for browser event and only 6% on server events. Do you know if those percentage can be modified?
Do you think that deactivating plugin or reconfiguring the connection with the catalog something can change?
Thanks for your support
S.btw – I see that this issue is reported already many times and noone seemed to be able to resolve it. My ads stopped working in June – I am not sure if there is a sense in running them again if API is not working properly
Have you tried turning off the automatic event tracking as detailed here?
https://www.facebook.com/business/help/555177831677798?id=1205376682832142
I’m not really an expert on Facebook’s Event Manager myself, but it seems like that might cut down on the server events perhaps?
Let us know, thanks!
Unfortunately nothing worked for us and also the support from facebook itself was almost useless in pointing us to the right solution. We decided for now to deactivate the plugin and insert the pixel code manually. We will evaluate to use the plugin again in the future if the bugs tha impact us will be resolved.
thanks for supportsirio345 – could you let me know here if that solution worked? Will be grateful as we are in the same place.
Hi @sirio345,
Thanks for the update and your patience while we try to help you resolve the issue. Sorry to hear that you didn’t have much luck.
Since you’ve decided to no longer use the plugin, I’ll close this thread for now, but feel free to reopen it if you ever want to dig back into it.
Feel free to start your own support thread here. Let us know what you’ve already tried and we’d be happy to continue assisting you. 🙂
- The topic ‘Duplicated Add to Cart Events and invalid parameters sent from server’ is closed to new replies.