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

Wrong IP sent to Conversion API when site behind proxy

Open edu2004eu opened this issue 2 years ago β€’ 1 comments

πŸ”Ž Isolate the bug

  • [x] I have confirmed this occurs in the most recent version of WordPress, WooCommerce, and Facebook for WooCommerce.
  • [x] I have confirmed this occurs when only WooCommerce and Facebook for WooCommerce are active and when using a default WordPress or WooCommerce theme.

✍️ Describe the bug

My site runs behind CloudFlare. Facebook is complaining that the Conversion API is receiving wrong IP addresses, so I am guessing that the plugin doesn't correctly detect that the site is running behind a proxy and actually sends CloudFlare's IP instead of the client's.

πŸšΆβ€β™€οΈ Steps to reproduce

  1. Install plugin
  2. Set up a free CloudFlare account
  3. Set the DNS to CF
  4. Trigger some FB events
  5. Check the FB pixel dashboard

βœ”οΈ Expected behavior

Client's IP should be sent / FB shouldn't complain about wrong IPs

edu2004eu avatar Jul 09 '21 21:07 edu2004eu

Another report in 4200192-zen

AashikP avatar Aug 06 '21 05:08 AashikP

This issue seems to have been fixed by https://github.com/woocommerce/woocommerce/issues/16319. Closing

rawdreeg avatar Sep 21 '22 09:09 rawdreeg