Skip to content

Conversation

ukilla
Copy link
Collaborator

@ukilla ukilla commented Jul 17, 2025

Description

This PR adds new settings to exclude specific emails, IP addresses, and admin purchases from triggering Facebook Purchase events. Implements a user-friendly Select2 tag input UI for managing these exclusions, improving usability and control over event tracking. The inputs for these options are located in Facebook WC Page->Shops->Settings->Troubleshooting
This PR regards the issue mentioned in #3463.

Type of change

Please delete options that are not relevant

  • Add (non-breaking change which adds functionality)

Checklist

  • I have commented my code, particularly in hard-to-understand areas, if any.
  • I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
  • I have checked plugin debug logs that my changes do not introduce any new PHP warnings or FATAL errors.
  • I followed general Pull Request best practices. Meta employees to follow this wiki.
  • I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
  • I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
  • [] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this wiki.

Changelog entry

Exclude emails, IPs, and admin purchases from Facebook Purchase events with new tag-based settings inputs.

Test Plan

  • Added new settings fields for excluding emails, IP addresses, and admin purchases in the Facebook for WooCommerce plugin settings.
  • Verified that the tag-style input fields accept multiple entries and save correctly.
  • Tested placing orders with billing emails and IPs listed in the exclusion settings to confirm that Facebook Purchase events are not triggered.
  • Verified that orders placed by admin users do not send purchase events when the exclude admin option is enabled.
  • Tested both the frontend and backend to ensure no errors occur during event injection.

Screenshots

Before

After

Screenshot 2025-07-17 at 14 36 41

@meta-cla meta-cla bot added the CLA Signed label Jul 17, 2025
Copy link
Contributor

github-actions bot commented Jul 17, 2025

📦 Latest Plugin Build

Built at: 2025-07-18T10:16:05.925Z
Commit: d76d136
Size: 1.1M

Download: Click here to download the plugin

To download: Click the link above → Scroll to bottom → Download "facebook-for-woocommerce" artifact

@ukilla ukilla added feature: pixel events & conversion tracking Related to Facebook pixel, events, and conversion tracking. changelog: add A new feature, function, or functionality was added. labels Jul 17, 2025
Copy link
Contributor

@vahidkay-meta vahidkay-meta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me discuss this with Marko before we proceed with this

@ukilla ukilla force-pushed the feature/exclude-admin-test-orders-facebook-purchase branch from b6c5613 to 1b4e34f Compare July 18, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: add A new feature, function, or functionality was added. CLA Signed feature: pixel events & conversion tracking Related to Facebook pixel, events, and conversion tracking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants