Add premium-analytics plugin#48087
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Premium Analytics plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
96635b3 to
4b22a20
Compare
0d14ede to
1fc1e3b
Compare
4b22a20 to
d3476be
Compare
6e587fd to
dcdb542
Compare
a94f5ce to
6eaad7b
Compare
52ed11e to
749e5d9
Compare
Code Coverage SummaryCoverage changed in 1 file.
|
anomiex
left a comment
There was a problem hiding this comment.
Gave it a quick overview. Seems ok for its stated purpose; some suggestions inline.
There was a problem hiding this comment.
No need for this file if it's going to be empty.
| "extra": { | ||
| "autotagger": false, | ||
| "autorelease": false, | ||
| "mirror-repo": "Automattic/jetpack-premium-analytics-plugin", |
There was a problem hiding this comment.
I wonder whether a mirror repo is even necessary. If this is only going to be used within the monorepo (e.g. with jetpack docker, jetpack playground, or maybe jetpack rsync), you could probably skip it.
On the other hand, if you're wanting to use the plugin with Jetpack Beta Tester (including on Jurassic Ninja), that'll need a beta-plugin-slug key here and it'll need us to do some setup on betadownload.jetpack.me.
There was a problem hiding this comment.
For now, the plugin is just a dev harness to test the package locally (Jetpack Docker, Playground, Rsync).
No need for a mirror repo at this stage. If we need Beta Tester / Jurassic Ninja support later, we can set up the mirror and beta-plugin-slug in a follow-up.
7fe1461 to
fbacf85
Compare
6f55a70 to
ae38a48
Compare
kangzj
left a comment
There was a problem hiding this comment.
Nice one! Works as described 👍
|
One thing though - if WooCommerce is installed, Analytics would already be registered as a menu item, so we should probably use a different name like 'Premium Analytics' dunno.. |
Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
2eafa61 to
ecf8b90
Compare
default remains 'Analytics'; plugin passes 'Premium Analytics'
0728e6a to
4e68e5a
Compare

What?
Adds an internal WordPress plugin (
projects/plugins/premium-analytics/) that activates theautomattic/jetpack-premium-analyticspackage. Thin wrapper — loads the autoloader and callsAnalytics::init().Relates to WOOA7S-1344.
Why?
The premium-analytics package needs a consumer to verify it loads correctly in wp-admin. This plugin exists as a development and testing harness — not intended for publication (
autotaggerandautoreleaseset tofalse).How?
jetpack-premium-analytics.php: defines constants, loads Jetpack autoloader, adds settings linkclass-jetpack-premium-analytics.php: callsPremiumAnalytics\Analytics::init()composer.json: requiresautomattic/jetpack-premium-analyticsfrom monorepo path.phpcs.dir.xml: text domain configuration for lintingTesting instructions
pnpm installjetpack install plugins/premium-analyticsto resolve Composer dependenciesjetpack build packages/premium-analyticsto build the packagejetpack docker upand activate the Premium Analytics pluginScreen.Recording.2026-04-14.at.6.55.45.PM.mov
Does this pull request change what data or activity we track or use?
No. This plugin is a thin wrapper that loads the premium-analytics package. No new data collection or tracking is introduced.