Skip to content

Conversation

n7studios
Copy link
Contributor

Summary

Adds a Usage Tracking checkbox to the Plugin settings and Setup Wizard screens, that creators may opt in to, so we can later track the Plugins and Themes installed on sites with the Kit Plugin installed, to help improve compatibility and migrations.

Screenshot 2025-10-06 at 19 46 36

We can't automatically collect this without consent:
https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#7-plugins-may-not-track-users-without-their-consent

We don't have an API endpoint to track this on the wordpress namespace, but we can add one later, and then start collecting some data.

Testing

  • testEnableAndDisableUsageTrackingSetting: Test that no PHP errors or notices are displayed on the Plugin's Setting screen when the Usage Tracking settings is unchecked, and that CSS is output on the frontend web site.
  • testSetupWizardUsageTrackingSetting: Test that the Setup Wizard > Usage Tracking setting is honored.

Checklist

@n7studios n7studios self-assigned this Oct 6, 2025
Copy link

github-actions bot commented Oct 6, 2025

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team October 8, 2025 09:12
@n7studios n7studios marked this pull request as ready for review October 8, 2025 09:12
@n7studios n7studios merged commit 0b0c6d3 into main Oct 9, 2025
375 of 422 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants