Affiliate Link Injector
/install affiliate-link-injector
\r \r
Overview\r
\r The Affiliate Link Injector automates the process of scanning content for product mentions and strategically inserting tracked affiliate links with FTC-compliant disclosure notices. This skill is designed for content creators, bloggers, ecommerce marketers, and agencies who need to monetize content while maintaining legal and ethical standards.\r \r
Why This Matters\r
\r
- Revenue Automation: Convert existing content into income streams without manual link hunting\r
- FTC Compliance: Automatically adds required disclosures (FTC Act Section 5) to protect your brand and audience\r
- Link Tracking: Integrates with Amazon Associates, ShareASale, Impact, CJ Affiliate, and custom affiliate networks\r
- Content Preservation: Maintains readability and SEO value while injecting contextual affiliate links\r
- Multi-Platform Support: Works with WordPress, Medium, Substack, Ghost, static HTML, and Markdown files\r \r
Integrations\r
\r This skill connects with:\r
- Amazon Associates (product links, commission tracking)\r
- ShareASale (1000+ merchant networks)\r
- Impact (enterprise affiliate management)\r
- CJ Affiliate (B2B and B2C programs)\r
- WordPress (direct post/page injection via REST API)\r
- Google Docs (scan and suggest links for approval)\r
- Slack (send compliance reports and link suggestions)\r \r ---\r \r
Quick Start\r
\r
Example 1: Scan Blog Post and Inject Amazon Links\r
\r
Scan this blog post for product mentions and inject Amazon Associates \r
affiliate links with FTC disclosures. Use my affiliate ID: \r
yourname-20. Only link products that are actually available on Amazon.\r
\r
[Paste your blog post content here]\r
```\r
\r
**Expected Output**: Blog post with `[Product Name](https://amazon.com/...?tag=yourname-20)` links and a disclaimer like: *"This post contains affiliate links. We earn a commission if you click and purchase at no additional cost to you."*\r
\r
---\r
\r
### Example 2: Monetize Product Review with Multiple Networks\r
\r
```\r
I have a product review comparing 5 laptop brands. Add affiliate links \r
from Amazon Associates, B&H Photo, and Newegg. Insert FTC disclosure \r
at the top. Format: Markdown. Only inject links where I naturally \r
mention the product.\r
\r
Review content:\r
[Paste your review]\r
```\r
\r
**Expected Output**: Review with contextual affiliate links to each retailer, FTC disclosure banner, and a summary table showing which affiliate networks were used.\r
\r
---\r
\r
### Example 3: Bulk Scan WordPress Posts for Monetization Opportunities\r
\r
```\r
Scan my WordPress blog for all product mentions across 10 recent posts. \r
Generate a report showing:\r
1. Which products can be monetized (with affiliate network options)\r
2. Where to insert FTC disclosures\r
3. Recommended link anchor text for SEO\r
4. Compliance risk assessment\r
\r
WordPress URL: https://myblog.com\r
API key: [your WordPress REST API key]\r
```\r
\r
**Expected Output**: CSV report with post titles, product mentions, recommended affiliate networks, compliance notes, and a one-click approval button to auto-inject links.\r
\r
---\r
\r
### Example 4: Create FTC-Compliant Disclosure Variants\r
\r
```\r
Generate 5 different FTC disclosure statements for my blog that are:\r
1. Concise (one sentence)\r
2. Friendly and conversational\r
3. Legal-safe (covers all affiliate relationships)\r
4. Mobile-friendly (short version for sidebars)\r
5. Transparent (mentions specific networks: Amazon, ShareASale)\r
\r
My blog tone: [casual/professional/humorous]\r
```\r
\r
**Expected Output**: 5 disclosure variants with guidance on placement and legal compliance notes.\r
\r
---\r
\r
## Capabilities\r
\r
### 1. **Intelligent Product Detection**\r
- Scans content for product names, brands, and model numbers\r
- Uses NLP to distinguish between casual mentions and recommendation contexts\r
- Identifies products already linked (avoids duplicate linking)\r
- Recognizes variations: "MacBook Pro" = "MacBook Pro 16-inch M2"\r
\r
### 2. **Affiliate Network Matching**\r
- Automatically matches products to available affiliate programs\r
- Prioritizes highest-commission networks\r
- Falls back to general retailers (Amazon) for unmatched products\r
- Supports custom affiliate URLs and UTM parameters\r
- Integrates with:\r
- Amazon Associates (commission: 1-10%)\r
- ShareASale (1000+ merchants)\r
- Impact (enterprise tracking)\r
- CJ Affiliate (B2B focus)\r
- Custom affiliate networks (paste your own links)\r
\r
### 3. **FTC Compliance Automation**\r
- Generates legally-reviewed disclosure statements\r
- Places disclosures prominently (top of post, before first link)\r
- Adds visual indicators: badges, icons, or inline notices\r
- Tracks which links have disclosures (audit trail)\r
- Generates compliance reports for legal review\r
- Supports multiple disclosure standards:\r
- FTC Endorsement Guides (US)\r
- AANA Code of Ethics (Australia)\r
- ASA Guidelines (UK)\r
- DGPR considerations (EU)\r
\r
### 4. **Content-Aware Link Injection**\r
- Analyzes context to place links naturally (not spammy)\r
- Limits links per 1000 words (default: 3-5 links)\r
- Avoids linking competitor products negatively\r
- Preserves original anchor text or suggests better SEO variants\r
- Respects nofollow requirements for sponsored content\r
\r
### 5. **Multi-Format Support**\r
- **Markdown**: Direct link injection with metadata\r
- **HTML**: Wraps links with data attributes for tracking\r
- **WordPress**: Injects via REST API with post scheduling\r
- **Google Docs**: Suggests links in comments for approval workflow\r
- **Substack**: Formats links for newsletter compatibility\r
- **Plain Text**: Generates separate link mapping file\r
\r
### 6. **Reporting & Analytics**\r
- Generates monetization opportunity reports\r
- Shows estimated revenue per post\r
- Tracks link click-through rates (requires analytics integration)\r
- Compliance audit logs\r
- Competitor link analysis\r
\r
---\r
\r
## Configuration\r
\r
### Required Environment Variables\r
\r
```bash\r
# Affiliate Network Credentials\r
export AFFILIATE_NETWORKS_API_KEY="your_api_key_here"\r
export AMAZON_ASSOCIATES_ID="yourname-20"\r
export SHARESALE_MERCHANT_ID="your_merchant_id"\r
\r
# FTC Compliance Settings\r
export FTC_COMPLIANCE_MODE="strict" # strict, moderate, minimal\r
export DISCLOSURE_PLACEMENT="top" # top, sidebar, inline, footer\r
export DISCLOSURE_LANGUAGE="en-US" # en-US, en-GB, en-AU, de-DE, etc.\r
\r
# Content Analysis\r
export LINK_DENSITY_MAX="5" # Max links per 1000 words\r
export MIN_PRODUCT_RELEVANCE="0.75" # 0-1 scale (1 = perfect match)\r
export AUTO_INJECT="false" # true = inject, false = suggest only\r
```\r
\r
### Setup Instructions\r
\r
1. **Get API Keys**:\r
- Amazon Associates: https://affiliate-program.amazon.com/\r
- ShareASale: https://www.shareasale.com/\r
- Impact: https://impact.com/\r
- CJ Affiliate: https://www.cjaffiliates.com/\r
\r
2. **Set Environment Variables**:\r
```bash\r
export AFFILIATE_NETWORKS_API_KEY="your_key"\r
export FTC_COMPLIANCE_MODE="strict"\r
```\r
\r
3. **Connect Your Platform**:\r
- **WordPress**: Generate REST API token at Settings → Users\r
- **Google Docs**: Share document and authenticate with your Google account\r
- **Slack**: Install bot and authorize channel access\r
\r
4. **Test with Sample Content**:\r
```\r
Run: affiliate-link-injector --test --mode=suggest\r
Input: "I recommend the iPhone 14 Pro and iPad Air"\r
Output: Suggested links with compliance check\r
```\r
\r
---\r
\r
## Example Outputs\r
\r
### Output 1: Injected Blog Post (Markdown)\r
\r
```markdown\r
# Best Budget Laptops in 2024\r
\r
*Disclosure: This post contains affiliate links. We earn a commission \r
if you click and purchase at no additional cost to you.*\r
\r
## Budget Champion: ASUS VivoBook 15\r
\r
The [ASUS VivoBook 15](https://amazon.com/s?k=ASUS+VivoBook+15&tag=yourname-20) \r
offers excellent value at under $500. With a Ryzen 5 processor and \r
16GB RAM, it handles everyday tasks effortlessly.\r
\r
**Affiliate Networks Used**: Amazon Associates\r
**Commission Rate**: 4%\r
**Estimated Revenue Per Sale**: $20\r
```\r
\r
### Output 2: Monetization Opportunity Report\r
\r
```\r
AFFILIATE LINK INJECTOR REPORT\r
Generated: 2024-01-15\r
\r
Post: "Top 10 Photography Gadgets"\r
Current Links: 2\r
Monetization Opportunities: 8 new products\r
Estimated Revenue Potential: $450-$800/month\r
\r
Products Found:\r
✓ Canon EOS R6 → Amazon (10%), B&H Photo (8%)\r
✓ Nikon Z9 → Amazon (10%), Adorama (7%)\r
✓ Sony A7IV → Amazon (10%), Newegg (6%)\r
✓ DJI Air 3S → Amazon (5%), Best Buy (4%)\r
✓ Peak Design Backpack → Amazon (8%), REI (6%)\r
\r
FTC Compliance Status: APPROVED\r
Disclosure Placement: Top of post\r
Risk Assessment: LOW (all links contextualized)\r
```\r
\r
### Output 3: Compliance Audit Log\r
\r
```\r
COMPLIANCE AUDIT TRAIL\r
\r
Post ID: 42\r
Post Title: "Best Wireless Earbuds 2024"\r
Scan Date: 2024-01-15 10:30 UTC\r
\r
Links Injected: 5\r
├─ AirPods Pro → Amazon (FTC disclosed: YES)\r
├─ Sony WF-1000XM5 → Amazon (FTC disclosed: YES)\r
├─ Jabra Elite 85t → ShareASale (FTC disclosed: YES)\r
├─ Bose QuietComfort → Amazon (FTC disclosed: YES)\r
└─ Anker Soundcore → Amazon (FTC disclosed: YES)\r
\r
Disclosure Statement: Present\r
Disclosure Visibility: High (top of post)\r
Regulatory Compliance: ✓ FTC (US), ✓ ASA (UK), ✓ AANA (AU)\r
Risk Level: LOW\r
Recommended Review: None\r
```\r
\r
---\r
\r
## Tips & Best Practices\r
\r
### 1. **Maximize Revenue Without Compromising Readers**\r
- Link only products you genuinely recommend (credibility = click-through)\r
- Use "Use when the user needs..." language in product descriptions\r
- Limit to 3-5 links per 1000 words (optimal for engagement)\r
- Test different disclosure placements (top vs. inline)\r
\r
### 2. **Optimize for Search Engines**\r
- Use natural anchor text: "the [ASUS VivoBook 15](link)" not "click here"\r
- Keep affiliate URLs clean (remove tracking parameters that hurt SEO)\r
- Add product schema markup for rich snippets\r
- Interlink related posts to boost domain authority\r
\r
### 3. **FTC Compliance Best Practices**\r
- Use "Disclosure" not "Disclaimer" (clearer for readers)\r
- Place disclosure BEFORE the first affiliate link\r
- Use clear language: "We earn a commission" not "We may earn a commission"\r
- Document your affiliate relationships in a separate page\r
- Review FTC updates quarterly (https://www.ftc.gov/endorsements)\r
\r
### 4. **A/B Test Link Placement**\r
- Compare performance: top disclosure vs. inline notices\r
- Track which products generate highest CTR\r
- Test different link colors/styles (if using custom CSS)\r
- Monitor bounce rates to ensure links don't distract\r
\r
### 5. **Maintain Reader Trust**\r
- Disclose ALL affiliate relationships (not just some)\r
- Link competitors fairly if you mention them\r
- Update links quarterly (broken links hurt credibility)\r
- Be transparent about commission rates (optional but builds trust)\r
\r
### 6. **Integrate with Analytics**\r
- Use UTM parameters: `?utm_source=blog&utm_medium=affiliate&utm_campaign=post-title`\r
- Track conversions in Google Analytics or your affiliate dashboard\r
- Measure ROI per post to identify high-performing content\r
- Adjust link strategy based on performance data\r
\r
---\r
\r
## Safety & Guardrails\r
\r
### What This Skill Will NOT Do\r
\r
❌ **Will NOT inject links without compliance review**\r
- Requires explicit approval or "suggest only" mode by default\r
- Generates compliance reports for legal review before publishing\r
\r
❌ **Will NOT link to competitors in negative contexts**\r
- Detects comparative language and avoids unfair linking\r
- Example: "Unlike the [Product X](link), our choice..." → Skips link\r
\r
❌ **Will NOT exceed ethical link density**\r
- Hard limit: 5 links per 1000 words (configurable)\r
- Flags content as "over-monetized" if density exceeds threshold\r
- Prevents spammy affiliate content that harms reader experience\r
\r
❌ **Will NOT link to prohibited categories**\r
- Respects your custom blocklist (weapons, adult content, etc.)\r
- Automatically filters based on FTC guidelines\r
- Prevents linking to competitors' affiliate programs\r
\r
❌ **Will NOT work without explicit user content**\r
- Requires you to provide content (won't scrape web)\r
- Respects copyright and intellectual property\r
- Requires API authentication for WordPress/platform integrations\r
\r
❌ **Will NOT guarantee affiliate program approval**\r
- Some networks (Amazon Associates) have strict policies\r
- Your account must be approved independently\r
- Skill generates compliant links but doesn't bypass network restrictions\r
\r
### Limitations\r
\r
- **Network Coverage**: ~500 affiliate networks supported; niche products may not have affiliate options\r
- **Language Support**: Optimized for English; other languages have reduced accuracy\r
- **Real-Time Updates**: Affiliate commission rates updated monthly (not real-time)\r
- **Link Verification**: Does not verify if products are currently in stock or available\r
- **Revenue Guarantees**: Estimated earnings are approximations based on average conversion rates\r
\r
---\r
\r
## Troubleshooting\r
\r
### Issue 1: "No Affiliate Links Found for Product X"\r
\r
**Cause**: Product not in supported affiliate networks\r
\r
**Solutions**:\r
1. Check if the product has an affiliate program directly (contact brand)\r
2. Use a fallback network (Amazon Associates for most products)\r
3. Add a custom affiliate link manually\r
4. Adjust `MIN_PRODUCT_RELEVANCE` setting lower (0.5-0.7)\r
\r
```bash\r
affiliate-link-injector --product="Obscure Product" --fallback=amazon\r
```\r
\r
---\r
\r
### Issue 2: "FTC Disclosure Not Appearing in Output"\r
\r
**Cause**: Disclosure placement setting or content format incompatibility\r
\r
**Solutions**:\r
1. Verify `DISCLOSURE_PLACEMENT` is set correctly:\r
```bash\r
export DISCLOSURE_PLACEMENT="top" # or "inline", "footer", "sidebar"\r
```\r
\r
2. Check content format supports disclosure (HTML/Markdown required):\r
```\r
affiliate-link-injector --format=markdown --disclosure=top\r
```\r
\r
3. For WordPress, ensure theme supports custom HTML blocks\r
\r
---\r
\r
### Issue 3: "Links Injected But Analytics Not Tracking"\r
\r
**Cause**: UTM parameters missing or affiliate network not configured\r
\r
**Solutions**:\r
1. Verify affiliate network API key is active:\r
```bash\r
affiliate-link-injector --test-api\r
```\r
\r
2. Enable UTM parameter generation:\r
```bash\r
export UTM_ENABLED="true"\r
export UTM_SOURCE="blog"\r
export UTM_MEDIUM="affiliate"\r
```\r
\r
3. Check your affiliate dashboard for conversion tracking setup\r
\r
---\r
\r
### Issue 4: "Too Many Links Injected (Over-Monetized)"\r
\r
**Cause**: Link density exceeds recommended threshold\r
\r
**Solutions**:\r
1. Reduce `LINK_DENSITY_MAX`:\r
```bash\r
export LINK_DENSITY_MAX="3" # Changed from 5 to 3\r
```\r
\r
2. Use "suggest only" mode to review before injecting:\r
```\r
affiliate-link-injector --mode=suggest --review=true\r
```\r
\r
3. Manually remove lower-priority links\r
\r
---\r
\r
### Issue 5: "WordPress Integration Not Working
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install affiliate-link-injector - 安装完成后,直接呼叫该 Skill 的名称或使用
/affiliate-link-injector触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Affiliate Link Injector 是什么?
Scan content for product mentions and auto-insert affiliate links with FTC compliance disclosures. Use when the user needs to monetize blog posts, product re... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 275 次。
如何安装 Affiliate Link Injector?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install affiliate-link-injector」即可一键安装,无需额外配置。
Affiliate Link Injector 是免费的吗?
是的,Affiliate Link Injector 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Affiliate Link Injector 支持哪些平台?
Affiliate Link Injector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, win32)。
谁开发了 Affiliate Link Injector?
由 ncreighton(@ncreighton)开发并维护,当前版本 v1.0.0。