Repository navigation
Premium Analytics: Offer an Upgrade to Parse.ly item in the Stats options menu - #55470
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
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! |
561de82 to
2781bc8
Compare
The Settings card reaches a reader who goes looking for it. The options menu is on every dashboard page, so this puts the same offer in reach from wherever the reader already is. The slot draws the menu item, places it in its own group and sends the view and click events, so this is one more registration against the gate and the signup URL the Settings card already uses. The file now holds two prompts, hence the plural on its registration functions. Both prompts stay behind the jetpack-stats-promos and jetpack-stats-parsely-prompts feature flags, which default off. # Conflicts: # projects/packages/premium-analytics/src/parsely-promo.php # projects/packages/premium-analytics/tests/php/Parsely_Promo_Test.php # Conflicts: # projects/packages/premium-analytics/src/parsely-promo.php # projects/packages/premium-analytics/tests/php/Parsely_Promo_Test.php
2781bc8 to
6449efc
Compare
|
@claude please review this PR. Three Codex rounds have run across the branch's life, the last one on the current head after two rebases. Each returned the same single Declined: add plugin changelog entries for Jetpack, Stats and Premium Analytics. The Worth a reviewer's attention:
CI: all green except two e2e jobs that died at config load with |
|
Claude finished @adamwoodnz's task in 38s —— View job Review: Upgrade to Parse.ly item in the Stats options menu
I found no blocking issues. This is small and correct. Registration (
|
Fixes STATS-647
Stacked on #55429, which ships
src/parsely-promo.phpand the signup URL this registers against, and which is itself stacked on #55372. The base is the STATS-648 branch, nottrunk. Retarget as each one merges.Why
The Settings card from STATS-648 reaches a reader who goes looking for it. The options menu is on every dashboard page, so this puts the same offer in reach from wherever the reader already is, as the quietest permanent entry point of the three Upgrade to Parse.ly prompts.
Nothing is visible yet. The
jetpack-stats-parsely-promptsfeature flag gates it and defaults off.Proposed changes
src/parsely-promo.php,parsely/menu-upgradeon theoptions-menuplacement: "Upgrade to Parse.ly" as its label, the same self-serve signup URL as the Settings card, no dismiss control, andoffers_parsely_prompts()as its availability rule.configure_parsely_promo()andregister_parsely_promo()take the plural. Both prompts register oninit, which Premium Analytics: Offer an Upgrade to Parse.ly card on the Stats Settings page #55429 arranged so the copy is translated after the textdomain loads.No frontend change. #55372 already wired the options menu to the placement, which is why the issue's pointer at
stats-options-menu.tsxno longer applies: the slot draws the item, puts it in its own group below Settings, marks it as opening in a new tab and sends the view and click events.Two limits the item inherits from the slot
order.Screenshots
The item with the flag on and the gate forced, in its own group below Settings.
Related product discussion/links
Does this pull request change what data or activity we track or use?
No new events. The slot's existing
jetpack_premium_analytics_promo_viewandjetpack_premium_analytics_promo_clicknow fire forparsely/menu-upgrade. No dismiss event, since a menu item has no close control. The signup URL carries the site's public name and host as query parameters, both already public.Testing instructions
The flag is needed, plus an override so a local site qualifies:
https://dash.parsely.com/self-servein a new tab, withutm_source=jetpack,publisher_nameset to the site's title andsite_domainto its host.offers_parsely_promptsoverride and the item goes, on a site that does not meet the tier and views conditions.jetpack-stats-parsely-promptswith the gate override still on: the item goes.options-menuplacement for your own testing, turn it off. One promo shows per placement, and whichever sorts first wins.Verified
utm_source,publisher_nameandsite_domainfor the real site and opens in a new tab. With the gate override dropped, the script data offers no promos at all.init.premium-analyticsPHP suite green on the rebased branch: 986 tests, 2480 assertions. PHPCS clean on the three changed files.🤖 Generated with Claude Code