AffLoc — Affiliate Link Localization
AffLoc is a lightweight, cache-friendly WordPress plugin designed to help you maximize your affiliate revenue globally. It automatically detects your visitor’s country via IP and swaps out your affiliate links to match their regional store (e.g., Amazon US vs Amazon UK), ensuring you never lose a commission due to a “Not Available in Your Country” error.
Features
- Automatic Geolocation: Detects visitor country securely and accurately.
- Country-Specific Links: Assign different URLs for the same offer based on the user’s country code.
- Cache-Friendly: Uses a hybrid JavaScript approach so it works perfectly with caching plugins (WP Rocket, W3 Total Cache, etc.).
- Global Fallback: Define a default link for countries without a specific mapping.
- Easy Shortcodes: Simply use
[affloc_link slug="your-offer"]and let the plugin handle the rest.
External Services
This plugin relies on the following external services to function: 1. ipapi.co – Used to detect the visitor’s country securely over HTTPS by resolving their IP address. Their privacy policy is available at https://ipapi.co/privacy/. No personal data other than the user’s IP address and proxy headers is transmitted. 2. flagcdn.com – Used to deliver fast and reliable SVG/PNG country flag icons inside the WordPress Admin Dashboard.
