Installation Guide
A detailed guide to installing AffRank on your website.
Prerequisites
- An active AffRank account (sign up at affrank.ai/signup)
- Your website’s admin access
- Your unique User ID (available in your dashboard)
Installation Methods
Method 1: Direct Script Tag (Recommended)
The simplest way to install AffRank is by adding a single script tag to your website.
-
Copy Your Script
- Log in to your AffRank dashboard
- Navigate to Script Generator
- Click Copy Script
-
Add to Your Website
- Open your website’s HTML template or header
- Paste the script tag in the
<head>section:
<script src="https://affrank.io/script/YOUR_USER_ID.js"></script> -
Save and Deploy
- Save your changes
- Deploy to your production server
- AffRank is now active on your website
Method 2: Using a Tag Manager
If you use Google Tag Manager, Segment, or similar services:
- Create a new custom HTML tag
- Paste your AffRank script
- Set trigger to “All Pages”
- Publish the changes
Method 3: WordPress/CMS Plugins
WordPress
- Install the AffRank WordPress Plugin
- Activate the plugin
- Enter your User ID in settings
- Click Activate AffRank
Other Platforms
Check our integrations page for native plugins for:
- Shopify
- Wix
- Webflow
- Squarespace
- And more…
Verification
After installation, you should see AffRank is working:
-
Check the Browser Console
- Open your website in Chrome/Firefox
- Press F12 to open Developer Tools
- Go to Console tab
- You should see:
AffRank v1.x loaded successfully
-
Verify Script Loading
- Open Network tab in Developer Tools
- Refresh the page
- Look for requests to
https://affrank.io/script/... - Should return status 200
-
Test Tracking
- Add an affiliate link in your dashboard
- Visit your website
- Use the link and check analytics dashboard
Troubleshooting Installation
Script Not Loading
- Check your internet connection
- Verify User ID is correct
- Clear browser cache and refresh
- Check browser console for errors
Links Not Appearing
- Ensure links are active in dashboard
- Verify keywords match your content exactly
- Allow 5-10 minutes for changes to sync
- Check keyword case sensitivity
Performance Issues
- AffRank script is lightweight (<50KB)
- Scripts load asynchronously (non-blocking)
- Does not affect page load times
Security & Privacy
- AffRank scripts load over HTTPS
- No personal data is collected
- Your affiliate information stays private
- Works with most security plugins