';
diff --git a/includes/JetpackBoost/JetpackBoost.php b/includes/JetpackBoost/JetpackBoost.php
index 33bdcfee..27b76aa9 100644
--- a/includes/JetpackBoost/JetpackBoost.php
+++ b/includes/JetpackBoost/JetpackBoost.php
@@ -86,7 +86,7 @@ public function is_jetpackpremium_active() {
*/
public function prefetch_jetpack_boost() {
if ( is_plugin_active( 'jetpack-boost/jetpack-boost.php' ) ) {
- $admin_url = admin_url( 'admin.php?page=jetpack-boost' );
+ $admin_url = apply_filters( 'nfd_build_url', admin_url( 'admin.php?page=jetpack-boost' ) );
echo '' . "\n";
}
}
diff --git a/includes/Performance.php b/includes/Performance.php
index ce98dc2a..76f86747 100644
--- a/includes/Performance.php
+++ b/includes/Performance.php
@@ -241,7 +241,7 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
'id' => 'nfd_purge_menu-purge_all',
'title' => __( 'Purge All', 'wp-module-performance' ),
'parent' => 'nfd_purge_menu',
- 'href' => add_query_arg( array( self::PURGE_ALL => true ) ),
+ 'href' => apply_filters( 'nfd_build_url', add_query_arg( array( self::PURGE_ALL => true ) ) ),
)
);
@@ -251,7 +251,7 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
'id' => 'nfd_purge_menu-purge_single',
'title' => __( 'Purge This Page', 'wp-module-performance' ),
'parent' => 'nfd_purge_menu',
- 'href' => add_query_arg( array( self::PURGE_URL => true ) ),
+ 'href' => apply_filters( 'nfd_build_url', add_query_arg( array( self::PURGE_URL => true ) ) ),
)
);
}
@@ -262,7 +262,7 @@ public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ) {
'id' => 'nfd_purge_menu-cache_settings',
'title' => __( 'Cache Settings', 'wp-module-performance' ),
'parent' => 'nfd_purge_menu',
- 'href' => admin_url( 'tools.php?page=' . self::PAGE_SLUG ),
+ 'href' => apply_filters( 'nfd_build_url', admin_url( 'tools.php?page=' . self::PAGE_SLUG ) ),
)
);
}
diff --git a/src/sections/ImageOptimization/index.js b/src/sections/ImageOptimization/index.js
index 87c83493..89886053 100644
--- a/src/sections/ImageOptimization/index.js
+++ b/src/sections/ImageOptimization/index.js
@@ -237,7 +237,8 @@ const ImageOptimization = () => {
const mediaLibraryLink = () => {
const basePath = window.location.pathname.split( '/wp-admin' )[ 0 ];
- return `${ window.location.origin }${ basePath }/wp-admin/upload.php?autoSelectBulk`;
+ const mediaLink = `${ window.location.origin }${ basePath }/wp-admin/upload.php?autoSelectBulk`;
+ return window.NewfoldRuntime?.linkTracker?.addUtmParams( mediaLink ) || mediaLink;
};
const polishEnabled = isCapabilityEnabled( 'hasCloudflarePolish' );
diff --git a/src/sections/JetpackBoost/index.js b/src/sections/JetpackBoost/index.js
index be34b4ed..e7aa7621 100644
--- a/src/sections/JetpackBoost/index.js
+++ b/src/sections/JetpackBoost/index.js
@@ -148,7 +148,7 @@ const JetpackBoost = () => {
await new Promise( ( resolve ) => setTimeout( resolve, 1000 ) );
const adminUrl = `${ siteUrl }/wp-admin/admin.php?page=jetpack-boost`;
iframe = document.createElement( 'iframe' );
- iframe.src = adminUrl;
+ iframe.src = window.NewfoldRuntime?.linkTracker?.addUtmParams( adminUrl ) || adminUrl;
document.body.appendChild( iframe );
iframe.style.height = '0';
iframe.onload = async function () {
@@ -340,7 +340,7 @@ const JetpackBoost = () => {
{ isModuleEnabled && ! isPremiumActive ? (