Skip to content

Conversation

@chihsuan
Copy link
Member

@chihsuan chihsuan commented Jun 30, 2025

All Submissions:

Changes proposed in this Pull Request:

Related to WOOA7S-206

Add AI platforms chatgpt.com and claude.ai to the referral sources for order attribution tracking. We're adding 'AI' as a new channel. The PR makes it easier to test these attribution changes in WooCommerce Analytics.

How to test the changes in this Pull Request:

  1. Using this branch, generate a large number of test orders
  2. Go to /wp-admin/admin.php?page=wc-orders
  3. Confirm that there are orders with Origin set to Referral: Chatgpt.com or Referral: Claude.ai
Screenshot 2025-06-30 at 17 25 01

--


Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?

Changelog entry

Add AI sources to order attribution data

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

* Include 'chatgpt.com' and 'claude.ai' in the referral lists for order attribution.
@chihsuan chihsuan self-assigned this Jun 30, 2025
@chihsuan chihsuan requested review from budzanowski and louwie17 June 30, 2025 09:33
Copy link
Contributor

@louwie17 louwie17 left a comment

Choose a reason for hiding this comment

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

Thanks for adding this, this tested well :)

@chihsuan chihsuan merged commit 869e62b into trunk Jul 3, 2025
@chihsuan chihsuan deleted the add/ai-source branch July 3, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants