How to Use Keyword Auto-Linking
Automatically convert keywords and phrases in your content into affiliate links with LegendLinks keyword auto-linking feature.
Overview
Keyword auto-linking automatically finds and converts specified keywords in your content into affiliate links. This saves time and ensures consistent linking across your site.
What is Keyword Auto-Linking?
Auto-linking scans your content and replaces matching keywords with links to your affiliate offers. For example, "Nike shoes" could automatically become a link to your Nike affiliate offer.
Key Benefits
- ā” Time Saving: No manual linking needed
- šÆ Consistent: Ensures all instances are linked
- š Monetization: Automatically adds affiliate opportunities
- šļø Control: Full control over what gets linked
- š Analytics: Track which keywords perform best
How Keyword Auto-Linking Works
Keyword Matching Process
// Content: "I love Nike shoes, they're the best running shoes"
// Keywords: ["Nike shoes", "running shoes"]
// Result: "I love <a href="yoursite.com/go/nike">Nike shoes</a>, they're the best <a href="yoursite.com/go/running">running shoes</a>"
Smart Processing
- Whole Words Only: Avoids partial matches
- Case Insensitive: Works with any capitalization
- Priority Order: Processes rules in order
- No Double-Linking: Won't link already linked text
- Context Aware: Respects existing HTML structure
Requirements
- ā LegendLinks Pro/Plus/Business Plan (auto-linking is a premium feature)
- ā Auto-Linking Enabled: Must be activated in settings
- ā Keyword Rules: Need to create linking rules
How to Enable Auto-Linking
Step 1: Access Settings
- Go to LegendLinks ā Settings in your WordPress admin
- Click on the "General" tab
Step 2: Enable Auto-Linking
Find the "Keyword Auto-Linking" setting:
ā
Enable Keyword Auto-Linking: ON
Step 3: Configure Rules
Go to LegendLinks ā Auto Links to create linking rules.
Creating Auto-Link Rules
Step 1: Access Auto Links
- Go to LegendLinks ā Auto Links in your WordPress admin
- Click "+ Add New Rule"
Step 2: Configure Rule
Basic Settings
- Rule Name:
Nike Running Shoes - Keywords:
Nike shoes, running shoes, Nike running - Target Link: Select or create link to your Nike affiliate offer
- Status:
Active
Advanced Options
- Case Sensitive: Usually
No(case insensitive) - Limit Replacements:
0(unlimited) or set maximum per page - Priority:
10(higher numbers = higher priority)
Step 3: Save Rule
Click "Save Rule" to activate auto-linking.
Step-by-Step Examples
Example 1: Product Linking
Create Rule
Rule Name: Amazon Kindle
Keywords: Kindle, Amazon Kindle, Kindle Paperwhite
Target: yoursite.com/go/kindle-affiliate
Priority: 10
Content Before
I just bought a new Kindle Paperwhite and love it!
Content After
I just bought a new <a href="yoursite.com/go/kindle-affiliate">Kindle Paperwhite</a> and love it!
Example 2: Brand Linking
Create Rule
Rule Name: Shopify
Keywords: Shopify, Shopify store, Shopify website
Target: yoursite.com/go/shopify-affiliate
Priority: 5
Multiple Matches
Original: "Shopify store Shopify website"
Result: "<a href="yoursite.com/go/shopify-affiliate">Shopify store</a> <a href="yoursite.com/go/shopify-affiliate">Shopify website</a>"
Example 3: Service Linking
Create Rule
Rule Name: Web Hosting
Keywords: web hosting, hosting provider, host website
Target: yoursite.com/go/hosting-affiliate
Priority: 8
Limit: 2 (maximum 2 links per page)
Advanced Configuration
Priority System
Rules with higher priority numbers are processed first:
Priority 10: "Nike shoes" ā Link A (processed first)
Priority 5: "Nike" ā Link B (processed second, skips already linked)
Result: "<a>Nike shoes</a>" (only first rule applies)
Limit Replacements
Control how many times a keyword gets linked per page:
Rule: "hosting"
Limit: 3
Content: "hosting hosting hosting hosting hosting"
Result: "<a>hosting</a> <a>hosting</a> <a>hosting</a> hosting hosting"
Case Sensitivity
Case Sensitive: Yes
Keywords: "WordPress"
Matches: "WordPress" ā
, "wordpress" ā
Case Sensitive: No (default)
Keywords: "WordPress"
Matches: "WordPress" ā
, "wordpress" ā
, "WORDPRESS" ā
Testing Auto-Linking
Test 1: Basic Functionality
- Create rule: Keyword "test product" ā link to test offer
- Create post: Write "I recommend test product for everyone"
- Publish: View post and verify link was added
- Click test: Ensure link redirects properly
Test 2: Priority Testing
- Create two rules with different priorities
- Overlapping keywords: "best shoes" (priority 10), "shoes" (priority 5)
- Test content: "best shoes are great"
- Expected: Only "best shoes" gets linked (higher priority wins)
Test 3: Limit Testing
- Set limit: 2 replacements per page
- Keyword: "amazing"
- Content: "amazing amazing amazing amazing"
- Expected: Only first two instances linked
Content Type Support
Supported Content
- ā Posts: All post types
- ā Pages: Standard pages
- ā Custom Post Types: WooCommerce products, etc.
- ā Comments: Optional (can be enabled/disabled)
- ā Excerpts: Teaser content
Excluded Content
- ā Titles: Post/page titles
- ā Menus: Navigation menus
- ā Widgets: Sidebar widgets
- ā Headers/Footers: Template areas
- ā Admin Areas: WordPress admin interface
Performance Optimization
Processing Efficiency
- Lazy Loading: Only processes when content is displayed
- Caching: Results cached for performance
- Selective Processing: Only runs on configured post types
- Memory Efficient: Minimal memory usage
Best Practices
- Limit Rules: Don't create hundreds of rules
- Specific Keywords: Use specific phrases over single words
- Regular Audits: Remove unused rules
- Test Performance: Monitor page load times
Troubleshooting
Auto-Linking Not Working
Symptoms: Keywords not being converted to links Solutions:
- ā Verify auto-linking is enabled in settings
- ā Check Pro/Plus/Business plan is active
- ā Ensure rule status is "Active"
- ā Clear WordPress cache
- ā Test on published content (not preview)
Wrong Links Being Created
Symptoms: Wrong keywords getting linked or wrong targets Solutions:
- ā Check rule priorities (higher = processed first)
- ā Verify keyword specificity
- ā Test with simple keywords first
- ā Check for conflicting rules
Links Not Appearing in Content
Symptoms: Rules exist but no links in published content Solutions:
- ā Publish content (auto-linking doesn't work in drafts/previews)
- ā Check post type support
- ā Verify user permissions
- ā Test with different content
Performance Issues
Symptoms: Slow page loads after enabling auto-linking Solutions:
- ā Reduce number of rules
- ā Use more specific keywords
- ā Enable caching
- ā Monitor database queries
Advanced Use Cases
E-commerce Integration
// Product mentions
Keywords: "wireless headphones, Bluetooth speaker, smart watch"
Target: Affiliate product links
Result: Automatic product linking in blog posts
Brand Mention Linking
// Brand keywords
Keywords: "Apple, Samsung, Google, Microsoft"
Target: Brand affiliate pages
Result: Automatic brand linking in reviews
Service Linking
// Service keywords
Keywords: "web hosting, email marketing, SEO service"
Target: Service affiliate offers
Result: Automatic service linking in tutorials
Content Category Linking
// Category-based linking
Fitness content: "protein powder, workout supplements"
Tech content: "laptop, smartphone, tablet"
Result: Contextual linking based on content type
Analytics and Reporting
Performance Tracking
Access auto-linking analytics in LegendLinks ā Analytics:
Available Metrics
- Links Generated: How many auto-links created
- Click Performance: Which auto-links get clicked
- Keyword Performance: Best performing keywords
- Content Effectiveness: Which posts generate most links
A/B Testing
Test different auto-linking strategies:
Version A: "buy now" ā Direct affiliate link
Version B: "buy now" ā Landing page first
Compare: Click-through rates and conversions
Best Practices
ā Implementation Tips
- Start Small: Begin with 5-10 important keywords
- Be Specific: Use phrases like "wireless headphones" not just "headphones"
- Test Thoroughly: Check all content types and scenarios
- Monitor Performance: Track which rules work best
- Update Regularly: Refresh keywords based on trends
ā Content Quality
- Natural Integration: Don't over-link (avoid link spam)
- Context Matters: Ensure links add value to content
- User Experience: Links should enhance, not distract
- Compliance: Follow affiliate disclosure requirements
ā ļø Important Considerations
SEO Impact
- Over-linking: Can be seen as spammy by search engines
- Relevance: Ensure links are contextually appropriate
- Value: Links should provide genuine value to readers
Performance
- Page Speed: Too many rules can slow page generation
- Database Load: Complex rules increase processing time
- Caching: Ensure compatibility with caching plugins
Content Quality
- Readability: Don't create link clusters
- Disclosure: Use clear affiliate disclaimers
- Trust: Maintain reader trust with honest linking
Frequently Asked Questions
Does it work on existing content?
Yes. Auto-linking processes both new and existing published content. Just republish old posts to apply new rules.
Can I exclude certain content?
Yes. Configure which post types and content areas to process in settings.
What about internal links?
Smart detection. Auto-linking avoids linking already linked text and respects existing HTML structure.
Can I use HTML in keywords?
No. Keywords should be plain text. HTML tags are automatically handled.
Does it work with page builders?
Most. Works with Gutenberg, Classic Editor, and most page builders. Some complex layouts may need testing.
Can I limit links per page?
Yes. Set "Limit Replacements" in each rule to control maximum links per page.
What about mobile performance?
Optimized. Auto-linking is processed server-side and cached for optimal mobile performance.
Can I export/import rules?
Currently manual. Rules can be recreated in different installations.
Related Documentation
- Creating Links - Manual link creation
- Settings - Auto-linking configuration
- Analytics - Performance tracking
Need help? Check our FAQ or contact support.