facebook-for-woocommerce icon indicating copy to clipboard operation
facebook-for-woocommerce copied to clipboard

Invalid Match Key Parameters for events

Open findingsimple opened this issue 4 years ago • 35 comments

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/

findingsimple avatar Feb 17 '21 23:02 findingsimple

Reported in 3905075-zen

fylgjur avatar Apr 14 '21 07:04 fylgjur

Another report in https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-addtocart-event-30/

AashikP avatar Apr 24 '21 06:04 AashikP

Another report in 3928113-zen

AashikP avatar Apr 24 '21 08:04 AashikP

Another report in https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-8/

jessLundie avatar Apr 24 '21 15:04 jessLundie

Another report: https://wordpress.org/support/topic/pixel-error/?view=all

solstudioim avatar May 06 '21 06:05 solstudioim

Another report in the forum: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcontent-event-16/

thuautp avatar May 11 '21 15:05 thuautp

3998501-zen

WillBrubaker avatar May 19 '21 00:05 WillBrubaker

Reported as well in the forum: https://wordpress.org/support/topic/events-issues/?view=all

solstudioim avatar May 28 '21 01:05 solstudioim

Another report: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-7/?view=all

solstudioim avatar Jun 19 '21 11:06 solstudioim

Another report: https://wordpress.org/support/topic/3-errors-in-pixel-diagnostics/

shohanhossainnab avatar Jul 07 '21 04:07 shohanhossainnab

Another report: https://wordpress.org/support/topic/pixel-server-events-capi/#post-14746145

shohanhossainnab avatar Aug 09 '21 08:08 shohanhossainnab

Reported here as well: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event/page/3/#post-14769227

rashedripon avatar Aug 16 '21 11:08 rashedripon

Another report: https://wordpress.org/support/topic/invalid-key-parameter/

stephhjacq avatar Aug 16 '21 17:08 stephhjacq

Reported in 4250327-zen

thuautp avatar Aug 27 '21 10:08 thuautp

Another report: https://wordpress.org/support/topic/michal-golan-jewelry-requested-help-fixing-a-facebook-pixel/

felipevelzani avatar Sep 07 '21 12:09 felipevelzani

Another report: 31471768-hc

brianyu28 avatar Sep 14 '21 21:09 brianyu28

Another report here: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcontent-event-19/

fevered avatar Sep 17 '21 17:09 fevered

Received a new report for this today.

xpurichan avatar Dec 17 '21 22:12 xpurichan

Another report 4640197-zen

amElnagdy avatar Dec 31 '21 10:12 amElnagdy

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_category should be PAUL POTATO and content_name should be PAUL POTATO ideally.
  • But we get content_category as multiple categories separated by a comma : (PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI, Zubehör & Dünger)
  • content_name is 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ünger from that product, the results of the pixel changes to below:
  • content_category: PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI
  • content_name: CHARLY CHILI

Additionally, they got this error: Invalid Match Key Parameters for events (https://i.imgur.com/4zufspM.png)

kaushikasomaiya avatar Feb 11 '22 12:02 kaushikasomaiya

4825367-zen

thisissandip avatar Mar 10 '22 07:03 thisissandip

Another report here https://wordpress.org/support/topic/invalid-ip_address-parameters-for-viewcontent/

NathalyaVides avatar Mar 22 '22 21:03 NathalyaVides

New report here https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-addtocart-event-34/

NathalyaVides avatar Apr 26 '22 17:04 NathalyaVides

Another report 5190044-zd-woothemes

pehaa avatar May 06 '22 07:05 pehaa

Another report 29300512-hc

EjayhanFernandes avatar Aug 09 '22 06:08 EjayhanFernandes

I have the same issue

fvdbgit avatar Oct 04 '22 11:10 fvdbgit

I have these two problems

Server Sending Invalid Match Key Parameters for AddToCart Event Server Sending Invalid Match Key Parameters for ViewContent Event

tavo94 avatar Oct 12 '22 03:10 tavo94

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.

rawdreeg avatar Oct 14 '22 14:10 rawdreeg

Similar issue here: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-14/#post-16189618

zd-5704308

Babylon1999 avatar Nov 11 '22 16:11 Babylon1999

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 - c4Xylm.png

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 - xKDAw0.png

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

WillBrubaker avatar Jan 23 '23 23:01 WillBrubaker