Skip to content

Update WPR referral link when using Imagify#33

Open
remyperona wants to merge 4 commits intodevelopfrom
enhancement/rocket-url
Open

Update WPR referral link when using Imagify#33
remyperona wants to merge 4 commits intodevelopfrom
enhancement/rocket-url

Conversation

@remyperona
Copy link
Copy Markdown

@remyperona remyperona commented May 4, 2026

Description

Update the WPR referral link when using Imagify to redirect to the appropriate landing page, and associate the correct UTM parameters.

Related wp-media/imagify-plugin#1008

Type of change

  • Enhancement (non-breaking change which improves an existing functionality).

Detailed scenario

What was tested

While on Imagify settings page with WP Rocket uninstalled and checked the link to WP Rocket is the correct one updated

How to test

  • Use this branch on imagify by using dev-enhancement/rocket-url as the version for the plugin-family package in composer
  • run composer update
  • Go to imagify Imagify settings page with WP Rocket uninstalled
  • Check the link to WP Rocket

Affected Features & Quality Assurance Scope

Plugin family display on Imagify settings page

Technical description

Documentation

Updates the WP Rocket referral destination and UTM tracking when the plugin family UI is being shown from Imagify, ensuring the CTA/link points to the correct landing page for Imagify users.

Mandatory Checklist

Code validation

  • I validated all the Acceptance Criteria. If possible, provide screenshots or videos.
  • I triggered all changed lines of code at least once without new errors/warnings/notices.
  • I implemented built-in tests to cover the new/changed code.

Code style

  • I wrote a self-explanatory code about what it does.
  • I protected entry points against unexpected inputs.
  • I did not introduce unnecessary complexity.
  • Output messages (errors, notices, logs) are explicit enough for users to understand the issue and are actionnable.

remyperona and others added 2 commits May 4, 2026 15:26
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the WP Rocket referral destination and UTM tracking when the plugin family UI is being shown from Imagify, ensuring the CTA/link points to the correct landing page for Imagify users.

Changes:

  • Switch WP Rocket CTA/link URL generation to use add_query_arg() with explicit UTM args.
  • Add a special-case WP Rocket landing page + UTM set when the referrer is imagify.
  • Update the corresponding fixture expectations for the Imagify scenario.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Model/PluginFamily.php Generates a different WP Rocket CTA/link (landing page + UTM params) when invoked from Imagify.
tests/Fixtures/src/Model/PluginFamily/filterPluginsByActivation.php Updates expected plugin-family output to match the new WP Rocket URL for Imagify.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Model/PluginFamily.php Outdated
@remyperona remyperona requested a review from a team May 4, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants