WordPress Plugin
Version 1.0.0 · Requires WordPress 5.8+ and PHP 7.4+
What it does
Auto-discovers affiliate links
Scans every post and page on save and daily. Every affiliate link found is sent to your ProtectAffiliate dashboard for monitoring.
Injects pa.js automatically
Adds the protection script to every page. Smart Fallback silently replaces dead links before visitors see a 404.
Commission Protection
pa.js detects when Honey or Capital One Shopping overwrites your affiliate tag at click time. Reports every hijack in your dashboard.
Dashboard widget
WordPress admin shows a live widget with your link count, open issues, and plan status — fetched from your ProtectAffiliate account.
How to install
- 1
Download the plugin
Sign in to your ProtectAffiliate account and download the plugin zip file from this page.
- 2
Upload to WordPress
In your WordPress admin, go to Plugins → Add New → Upload Plugin. Upload the zip file and activate.
- 3
Enter your email to connect
Go to Settings → ProtectAffiliate. Enter your email address. We create your account instantly, generate an API key, and send a magic link to your email. No password needed — the plugin self-configures.
- 4
That's it
The plugin immediately scans your site for affiliate links and sends them to your dashboard. pa.js is injected automatically. You'll get an email alert the moment any link breaks.
Download WordPress Plugin
Free. Requires a ProtectAffiliate account to connect.
Technical notes
- · pa.js is 10kb, loads async, non-render-blocking. Zero performance impact on Core Web Vitals.
- · API key stored in WordPress options table (
pa_api_key). All communication over HTTPS. - · Daily link sync runs via WordPress cron (
pa_daily_synchook). No external cron needed. - · Maximum 200 links per sync call. Large sites are batched automatically.
- · For local development: define
PA_DEV_API_BASEin wp-config.php to point at localhost:3000.
Coming soon
Shopify App
SoonAuto-discover affiliate links in product descriptions and blog posts.
Chrome Extension
SoonBrowser-level hijack detection and one-click link auditing from the browser.
JavaScript SDK
SoonDrop-in script for any site — React, Next.js, plain HTML. Same pa.js capabilities without WordPress.