Add utm_content to the plugins-page upgrade link#3144
Merged
Conversation
The 'Upgrade to Pro' / 'Renew' link on the WP Plugins page routes through utm_campaign=plugin-row with no utm_content, so GA can't separate new-upgrade intent from renewal intent on a link that converts at 3.6%. Tag it 'upgrade' or 'renew' to match the existing form-templates convention; applies to both the Sales-API CTA and the default upgrade link. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| PHP | Jun 16, 2026 1:23p.m. | Review ↗ | |
| JavaScript | Jun 16, 2026 1:23p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Crabcyborg
approved these changes
Jun 16, 2026
Crabcyborg
left a comment
Contributor
There was a problem hiding this comment.
I made some small tweaks but I think we can merge this now.
🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
utm_contentto the "Upgrade to Pro" / "Renew" link on the WP Plugins page row.Why
This link routes through
utm_campaign=plugin-rowwith noutm_content. It converts well (~3.6%) but GA can't separate new-upgrade intent from renewal intent — and the label itself already switches between "Upgrade to Pro" and "Renew" based on license state, so the two are genuinely different funnels collapsed into one campaign.Change
Captures the license-expired check once (
$is_expired) and tags the linkreneworupgradeaccordingly — matching the existingcontent => 'upgrade' / 'renew'convention inFrmFormTemplatesController. Applies to both branches: the Sales-API CTA link (maybe_add_missing_utm) and the default upgrade link.utm_campaign=plugin-rowis unchanged; this only addsutm_content. No behavioral change.🤖 Generated with Claude Code