Update WPR referral link when using Imagify#33
Open
remyperona wants to merge 4 commits intodevelopfrom
Open
Conversation
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
There was a problem hiding this comment.
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.
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.
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
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
dev-enhancement/rocket-urlas the version for the plugin-family package in composercomposer updateAffected 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
Code style