Source Code
Affiliatematic - Amazon Affiliate Automation
AI-powered system that automatically analyzes webpage content and displays relevant Amazon product recommendations. Zero manual product selection required.
How It Works
Visitor lands on page
โ
AI analyzes page content (title, meta, text)
โ
Extracts keywords & identifies product categories
โ
Matches relevant Amazon products
โ
Displays widget with affiliate links
โ
You earn commission on purchases
Quick Integration (5 minutes)
Step 1: Get Amazon Affiliate Tag
Sign up at https://affiliate-program.amazon.com if you don't have one.
Your tag looks like: yoursite-20
Step 2: Whitelist Your Domain
- Sign up at https://affiliatematic.com
- Go to Dashboard โ Add domain
- Add both
example.comANDwww.example.com(they're treated separately)
Step 3: Add Widget HTML
Place this where you want recommendations to appear:
<div class="amazon-widget-container" data-tag="your-affiliate-tag"></div>
Step 4: Include Script
Add before closing </body>:
<script src="https://affiliatematic.com/amazon-widget.iife.js" async></script>
Configuration Options
| Attribute | Description | Required |
|---|---|---|
data-tag |
Your Amazon affiliate tag (e.g., "yoursite-20") | โ Yes |
Performance Benchmarks (Real Data)
| Metric | Improvement |
|---|---|
| Click-Through Rate | +150-300% (2.5x average) |
| Conversion Rate | +40-60% (1.5x average) |
| Commission Value | +25% (higher-value products) |
| Response Time | <100ms |
| Uptime | 99.9% |
Best Placement Strategies
High-converting positions:
- End of blog posts (after main content)
- Sidebar on product review pages
- Within "recommended products" sections
- After comparison tables
Content types that work best:
- Product reviews & comparisons
- How-to guides with equipment needs
- "Best X for Y" articles
- Tutorial content requiring tools/supplies
Example Integration
For a blog post about coffee:
<article>
<h1>How to Brew the Perfect Espresso</h1>
<p>Content about espresso brewing...</p>
<!-- AI will automatically show espresso machines, grinders, etc. -->
<div class="amazon-widget-container" data-tag="coffeesite-20"></div>
</article>
<script src="https://affiliatematic.com/amazon-widget.iife.js" async></script>
The AI analyzes "espresso brewing" content and displays relevant products like espresso machines, coffee grinders, and accessories.
Troubleshooting
| Issue | Solution |
|---|---|
| Widget not showing | Check domain is whitelisted (both www and non-www) |
| Wrong products | AI needs more content context - add more relevant text |
| Slow loading | Script is async, should not block page load |
Revenue Calculator
Estimate earnings at: https://affiliatematic.com/calculator
Formula:
Monthly Revenue = Visitors ร CTR ร Conversion ร Avg Commission
AI Revenue = Current Revenue ร 2.5 (CTR) ร 1.5 (Conv) ร 1.25 (Commission)
Resources
- Documentation: https://affiliatematic.com/docs
- Dashboard: https://affiliatematic.com/user/dashboard
- Revenue Calculator: https://affiliatematic.com/calculator
- Amazon Associates: https://affiliate-program.amazon.com