Affiliate Link Injector
WordPress plugin that automatically appends affiliate tracking parameters to links targeting specific domains
by Daniel Iser · github.com/danieliser/affiliate-link-injector · website
★ 1stars
11release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/danieliser/affiliate-link-injector/releases/download/1.0.3/affiliate-link-injector-1.0.3.zipDeclares an update source (https://github.com/danieliser/affiliate-link-injector), so updates arrive through the plugin's own updater.
From the readme
Affiliate Link Injector
Automatically appends affiliate tracking parameters to links targeting specific domains across all WordPress content contexts.
Features
- Rule-based injection - Define rules by target domain with query params (?ref=123) or path format (/ref/123)
- Universal content support - Works with Gutenberg blocks, Bricks Builder, Classic Editor, widgets, comments, excerpts, and REST API responses
- Smart duplicate detection - Prevents double-appending of affiliate parameters
- Subdomain matching - Optionally match subdomains (e.g., docs.example.com)
- Path exclusions - Skip specific paths from injection
- Modern admin UI - React-based rule management with inline editing
Requirements
- WordPress 6.2+
- PHP 8.0+
Installation
Via GitHub Release
1. Download the latest release zip from Releases
2. Upload to WordPress via Plugins → Add New → Upload Plugin
3. Activate the plugin
Via Git Updater
This plugin supports Git Updater for automatic updates.
Configuration
Navigate to Settings → Affiliate Links to manage rules.
Rule Options
| Field | Description |
|-------|-------------|
| Label | Display name for the rule |
| Domain | Target domain (e.g., example.com) |
Read the full README on GitHub →