facebook-for-woocommerce
facebook-for-woocommerce copied to clipboard
Invalid Match Key Parameters for events
Creating a catch-all issue for reports of "Invalid Match Key Parameters" for AddToCart and ViewContent Events. We are investigating more but the advice to date has been
“… this problem seems to affect only ip_address and user_agent parameters for two specific events. As we’re not seeing this issue widespread across the platform and this problem is affecting only a small amount of events from this Pixel, the problem may be due to users having ad-ons to their browser to avoid submitting information to websites. I recommend reviewing Pixel Settings and the code on the website itself to check for any issue. If there are no issues in the parameters requested on the website and the code is correct, please run a test using the test event tool. The admins may go ahead and click Mark as Resolved to see if the issue persists.”
Some initial problem-solving steps
- check your pixel is connected
- its likely related to browser extensions blocking user agent and IP address
- enable debug logging and see if you are getting any obviously errors
Reports
- https://github.com/facebookincubator/facebook-for-woocommerce/issues/1771
- https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event/#post-13433313
- https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-issue/
- https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-addtocart-event-8/
- https://wordpress.org/support/topic/issue-server-sending-invalid-match-key-parameters/
- https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-2/
Reported in 3905075-zen
Another report in https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-addtocart-event-30/
Another report in 3928113-zen
Another report in https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-8/
Another report: https://wordpress.org/support/topic/pixel-error/?view=all
Another report in the forum: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcontent-event-16/
3998501-zen
Reported as well in the forum: https://wordpress.org/support/topic/events-issues/?view=all
Another report: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-7/?view=all
Another report: https://wordpress.org/support/topic/3-errors-in-pixel-diagnostics/
Another report: https://wordpress.org/support/topic/pixel-server-events-capi/#post-14746145
Reported here as well: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event/page/3/#post-14769227
Another report: https://wordpress.org/support/topic/invalid-key-parameter/
Reported in 4250327-zen
Another report: https://wordpress.org/support/topic/michal-golan-jewelry-requested-help-fixing-a-facebook-pixel/
Another report: 31471768-hc
Another report here: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcontent-event-19/
Received a new report for this today.
Another report 4640197-zen
Reported in 4749302-zen
Some additional details:
- Issue: Facebook for WooCommerce is showing incorrect categories for the event
ViewCategory(https://imgur.com/5YN6g6l) - We were able to reproduce this issue with only WooCommerce and Facebook for WooCommerce as active on Twenty Twenty-Two theme.
- Tested on an example category page: PAUL POTATO
content_categoryshould be PAUL POTATO andcontent_nameshould bePAUL POTATOideally.- But we get
content_categoryas multiple categories separated by a comma : (PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI, Zubehör & Dünger) content_nameis picked as the last entry in the above comma-separated list:Zubehör & Dünger- We found out that this is influenced by the last product in the product list on the category page.
- For example, on the PAUL POTATO category page, the last product has categories as
PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI, Zubehör & Dünger - On removing the last category
Zubehör & Düngerfrom that product, the results of the pixel changes to below: content_category:PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILIcontent_name:CHARLY CHILI
Additionally, they got this error: Invalid Match Key Parameters for events (https://i.imgur.com/4zufspM.png)
4825367-zen
Another report here https://wordpress.org/support/topic/invalid-ip_address-parameters-for-viewcontent/
New report here https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-addtocart-event-34/
Another report 5190044-zd-woothemes
Another report 29300512-hc
I have the same issue
I have these two problems
Server Sending Invalid Match Key Parameters for AddToCart Event Server Sending Invalid Match Key Parameters for ViewContent Event
Thanks, @fvdbgit, @tavo94,
The Invalid Match Key Parameters for events error can be triggered for different reasons. Identifying a root cause has been quite tricky. One hypothesis is that the events are triggered by a web crawler, not a real user. We're still investigating a solution. We'll be sure to update this thread as soon as we have a fix available.
Similar issue here: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-14/#post-16189618
zd-5704308
From ticket 5885876-zen
I have altered the code in fbutils.php around line 92 and the products are now showing up In facebook without the joined SKU_ID
This code is your original file fbutils.php
$fb_retailer_id = $woo_product->get_sku() ?
$woo_product->get_sku() . '_' . $woo_id :
self::FB_RETAILER_ID_PREFIX . $woo_id;
and was showing as the link -
I have changed to
$fb_retailer_id = $woo_product->get_sku() ?
$woo_product->get_sku() :
self::FB_RETAILER_ID_PREFIX . $woo_id;
it is now showing as required -
Products are syncing to facebook and no errors showing in status logs, can this be investigated and if working correctly from your testing be published

