Title: B2Apps UTM Cleaner
Author: b2apps
Published: <strong>November 23, 2026</strong>
Last modified: November 23, 2026

---

Search plugins

![](https://ps.w.org/b2apps-utm-cleaner/assets/banner-772x250.png?rev=3817516)

![](https://ps.w.org/b2apps-utm-cleaner/assets/icon-256x256.png?rev=3817516)

# B2Apps UTM Cleaner

 By [b2apps](https://profiles.wordpress.org/b2apps/)

[Download](https://downloads.wordpress.org/plugin/b2apps-utm-cleaner.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/b2apps-utm-cleaner/#description)
 * [Reviews](https://wordpress.org/plugins/b2apps-utm-cleaner/#reviews)
 *  [Installation](https://wordpress.org/plugins/b2apps-utm-cleaner/#installation)
 * [Development](https://wordpress.org/plugins/b2apps-utm-cleaner/#developers)

 [Support](https://wordpress.org/support/plugin/b2apps-utm-cleaner/)

## Description

**B2Apps UTM Cleaner** keeps your WordPress URLs clean, shareable, and free of noisy
tracking parameters — with zero bloat and zero external requests.

#### Key Features

 * **Canonical URL Cleaning**: Removes tracking parameters from WordPress canonical
   URLs (`get_canonical_url`) to help prevent duplicate-URL indexing.
 * **Outbound Link Cleaning**: Strips tracking parameters (`utm_*`, `fbclid`, `gclid`,`
   mc_cid`, `mc_eid`, `msclkid`, `yclid`, `igshid`) from external links in post 
   content while preserving legitimate query arguments and anchor fragments.
 * **Redirect Cleaning**: Filters `wp_redirect` destinations so redirects do not
   forward unwanted tracking tokens.
 * **Copy-Clean-Link Helper & Shortcode**: Provides a lightweight `[cleanlink_copy]`
   shortcode and optional `history.replaceState` browser address-bar cleaner.
 * **Domain Allowlist & Live Tester**: Exclude specific outbound domains and preview
   how any URL is cleaned directly under **Settings -> B2Apps UTM Cleaner**.

#### Privacy

B2Apps UTM Cleaner runs 100% locally on your WordPress site and in the visitor’s
browser. It does not make external API calls, load third-party scripts, or collect
any telemetry.

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/`, or install the plugin ZIP file
    via **Plugins -> Add New -> Upload Plugin**.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Settings -> B2Apps UTM Cleaner** to review or customize stripped parameters
    and excluded domains.
 4. Optional: Add `[cleanlink_copy label="Copy Clean Link"]` to any post or template.

## FAQ

### Does B2Apps UTM Cleaner remove legitimate query parameters like ?page=2 or ?s=search?

No. B2Apps UTM Cleaner only removes query parameters that match your configured 
tracking patterns (such as `utm_*`, `fbclid`, `gclid`, and `mc_cid`). All other 
query arguments and `#fragment` anchors are preserved.

### Can I keep tracking parameters for specific partner or affiliate domains?

Yes. Add those domains (one per line) to **Excluded Outbound Domains** under **Settings-
> B2Apps UTM Cleaner**.

### Does B2Apps UTM Cleaner phone home or send URLs to an external service?

No. Everything runs locally in PHP and vanilla JavaScript.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“B2Apps UTM Cleaner” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ b2apps ](https://profiles.wordpress.org/b2apps/)

[Translate “B2Apps UTM Cleaner” into your language.](https://translate.wordpress.org/projects/wp-plugins/b2apps-utm-cleaner)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/b2apps-utm-cleaner/),
check out the [SVN repository](https://plugins.svn.wordpress.org/b2apps-utm-cleaner/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/b2apps-utm-cleaner/)
by [RSS](https://plugins.trac.wordpress.org/log/b2apps-utm-cleaner/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release: canonical URL stripping, outbound content link stripping, redirect
   filtering, copy-clean-link shortcode/helper, and Settings -> B2Apps UTM Cleaner
   admin page with live URL tester.

## Meta

 *  Version **1.0.0**
 *  Last updated **9 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [canonical](https://wordpress.org/plugins/tags/canonical/)[links](https://wordpress.org/plugins/tags/links/)
   [privacy](https://wordpress.org/plugins/tags/privacy/)[tracking](https://wordpress.org/plugins/tags/tracking/)
   [UTM](https://wordpress.org/plugins/tags/utm/)
 *  [Advanced View](https://wordpress.org/plugins/b2apps-utm-cleaner/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/b2apps-utm-cleaner/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/b2apps-utm-cleaner/reviews/)

## Contributors

 *   [ b2apps ](https://profiles.wordpress.org/b2apps/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/b2apps-utm-cleaner/)