digitalwithyou / craft-facebook-conversion

Craft CMS plugin to send web events directly to Facebook
https://digitalwithyou.com/en/plugins/facebook-conversion/getting-started
Other
0 stars 3 forks source link

Server Sending Invalid Match Key Parameters for Search Event #25

Closed aaronlax closed 2 years ago

aaronlax commented 2 years ago

"Your server is sending an invalid fbp, ip_address parameters value for your Search event. This may be because there was an error in the parameter value."

Not sure how to troubleshoot this, was reported by the site owner

Diewy commented 2 years ago

Hi @aaronlax,

That error can be caused by differentent reasons, it can get difficult to find the exact reason.

Does that help?

mostafasoufi commented 2 years ago

The same issue!

Shouldn't be sent those event's parameters into the custom parameters? https://github.com/digitalwithyou/craft-facebook-conversion/blob/main/src/listeners/cms/Search.php#L14

@Diewy

Diewy commented 2 years ago

Hi @mostafasoufi ,

Both the ip address and fbp are set by the official Facebook php library: https://github.com/facebook/facebook-php-business-sdk/blob/main/src/FacebookAds/Object/ServerSide/UserData.php#L874-L877

Facebook will not be able to identify all users. When there is no client side js library (e.g. blocked by an adblocker) and no Facebook query parameter and no emailaddress is set in the session, they won't be able to link the correct user.