Skip to content

Add utm_content to the plugins-page upgrade link#3144

Merged
Crabcyborg merged 3 commits into
masterfrom
zoro/utm-content-plugin-row-attribution
Jun 16, 2026
Merged

Add utm_content to the plugins-page upgrade link#3144
Crabcyborg merged 3 commits into
masterfrom
zoro/utm-content-plugin-row-attribution

Conversation

@strawhats-app

@strawhats-app strawhats-app Bot commented Jun 11, 2026

Copy link
Copy Markdown

What

Adds utm_content to the "Upgrade to Pro" / "Renew" link on the WP Plugins page row.

Why

This link routes through utm_campaign=plugin-row with no utm_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 link renew or upgrade accordingly — matching the existing content => 'upgrade' / 'renew' convention in FrmFormTemplatesController. Applies to both branches: the Sales-API CTA link (maybe_add_missing_utm) and the default upgrade link.

utm_campaign=plugin-row is unchanged; this only adds utm_content. No behavioral change.

🤖 Generated with Claude Code

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>
@deepsource-io

deepsource-io Bot commented Jun 11, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 4651c4b...ed21c37 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

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 Crabcyborg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I made some small tweaks but I think we can merge this now.

🚀

@Crabcyborg Crabcyborg added this to the 6.32 milestone Jun 16, 2026
@Crabcyborg
Crabcyborg merged commit d51b719 into master Jun 16, 2026
21 checks passed
@Crabcyborg
Crabcyborg deleted the zoro/utm-content-plugin-row-attribution branch June 16, 2026 13:27
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.

1 participant