From 1e9e60b7ca206cde0fe7a4265fef210d1e72b883 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Fri, 23 Oct 2026 09:32:37 +0100 Subject: [PATCH 1/2] Tag prosopo.io and portal links in the settings screens with UTM parameters Lets prosopo.io and the portal recognise visitors coming from the plugin and send them to the right page. utm_content records which link was used. Co-Authored-By: Claude Opus 5.5 --- .../src/settings/statistics/components/aboutAppComponent.tsx | 2 +- .../statistics/components/trafficAnalyticsComponent.tsx | 2 +- .../src/Settings/General/Upgrade_Tier/Upgrade_Tier_Banner.php | 2 +- prosopo-procaptcha/src/Settings/General/settings.blade.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/src/settings/statistics/components/aboutAppComponent.tsx b/assets/src/settings/statistics/components/aboutAppComponent.tsx index edf3133..0b01eca 100644 --- a/assets/src/settings/statistics/components/aboutAppComponent.tsx +++ b/assets/src/settings/statistics/components/aboutAppComponent.tsx @@ -16,7 +16,7 @@ class AboutAppComponent extends React.Component { } buttonComponentProperties={{ label: "Open the Portal", - href: "https://portal.prosopo.io", + href: "https://portal.prosopo.io/?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=statistics-about", icon: "icon-[material-symbols--settings-account-box-outline]", }} /> diff --git a/assets/src/settings/statistics/components/trafficAnalyticsComponent.tsx b/assets/src/settings/statistics/components/trafficAnalyticsComponent.tsx index 1e47f6c..2953b56 100644 --- a/assets/src/settings/statistics/components/trafficAnalyticsComponent.tsx +++ b/assets/src/settings/statistics/components/trafficAnalyticsComponent.tsx @@ -63,7 +63,7 @@ class TrafficAnalyticsComponent extends React.Component diff --git a/prosopo-procaptcha/src/Settings/General/Upgrade_Tier/Upgrade_Tier_Banner.php b/prosopo-procaptcha/src/Settings/General/Upgrade_Tier/Upgrade_Tier_Banner.php index b453336..371c8c3 100644 --- a/prosopo-procaptcha/src/Settings/General/Upgrade_Tier/Upgrade_Tier_Banner.php +++ b/prosopo-procaptcha/src/Settings/General/Upgrade_Tier/Upgrade_Tier_Banner.php @@ -31,6 +31,6 @@ protected function setCustomDefaults(): void { ); $this->button_label = __( 'Upgrade', 'prosopo-procaptcha' ); - $this->button_url = 'https://portal.prosopo.io/'; + $this->button_url = 'https://portal.prosopo.io/?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=upgrade-banner'; } } diff --git a/prosopo-procaptcha/src/Settings/General/settings.blade.php b/prosopo-procaptcha/src/Settings/General/settings.blade.php index c2c950d..e170146 100644 --- a/prosopo-procaptcha/src/Settings/General/settings.blade.php +++ b/prosopo-procaptcha/src/Settings/General/settings.blade.php @@ -13,7 +13,7 @@ {{ __( 'Prosopo Procaptcha', 'prosopo-procaptcha' ) }} + hover:text-black" href="https://prosopo.io/?utm_source=procaptcha-wp&utm_medium=plugin&utm_campaign=settings&utm_content=header" target="_blank"> {{ __( 'Visit Website', 'prosopo-procaptcha' ) }} {{ __( 'Visit Portal', 'prosopo-procaptcha' ) }} From 2b5c4a210846e79c20be8f05deed4a2729d8d43e Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Fri, 23 Oct 2026 09:45:07 +0100 Subject: [PATCH 2/2] Pin Contact Form 7 to 6.1.4 in the e2e tests CF7 6.2 raised its minimum PHP version to 8.3, but the test site runs on PHP 7.4, so CF7 no longer loaded and its shortcodes rendered as plain text. Installation lists now accept slug@version to pin a WordPress.org release; 6.1.4 is the last CF7 release that supports PHP 7.4. Co-Authored-By: Claude Opus 5.5 --- .../install-wordpress-with-plugins/action.yml | 17 ++++++++++++----- .../e2e/form-plugins/installation-list.json | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/actions/tests/install-wordpress-with-plugins/action.yml b/.github/actions/tests/install-wordpress-with-plugins/action.yml index fb1bae3..f6f6df1 100644 --- a/.github/actions/tests/install-wordpress-with-plugins/action.yml +++ b/.github/actions/tests/install-wordpress-with-plugins/action.yml @@ -29,17 +29,24 @@ runs: run: | cd ${{ github.workspace }}/tests/cypress/e2e/${{ matrix.cypress-target }} plugins=$(cat ./installation-list.json | jq -r '.plugins[]') - for plugin in $plugins; do - echo "Installing $plugin plugin" - + for entry in $plugins; do + # Entries are "slug" or "slug@version" to pin a WordPress.org release. + plugin="${entry%@*}" + version="latest-stable" + if [[ "$entry" == *@* ]]; then + version="${entry#*@}" + fi + + echo "Installing $plugin plugin ($version)" + paid_plugin_path="${{ inputs.paid_plugins_dir }}/$plugin.zip" - + if [[ -f "$paid_plugin_path" ]]; then echo "Found paid plugin ZIP for $plugin in the paid plugins directory." unzip "$paid_plugin_path" -d ${{ github.workspace }}/wp-content/plugins/ else echo "No local ZIP for $plugin, downloading from WordPress repository." - curl -L -o "$plugin.zip" "https://downloads.wordpress.org/plugin/$plugin.latest-stable.zip" + curl -fL -o "$plugin.zip" "https://downloads.wordpress.org/plugin/$plugin.$version.zip" unzip "$plugin.zip" -d ${{ github.workspace }}/wp-content/plugins/ rm "$plugin.zip" fi diff --git a/tests/cypress/e2e/form-plugins/installation-list.json b/tests/cypress/e2e/form-plugins/installation-list.json index daa345e..fa68db8 100644 --- a/tests/cypress/e2e/form-plugins/installation-list.json +++ b/tests/cypress/e2e/form-plugins/installation-list.json @@ -1,6 +1,6 @@ { "plugins": [ - "contact-form-7", + "contact-form-7@6.1.4", "everest-forms", "fluentform", "formidable",