Setting Up Your First Domain
Learn how to set up and verify your first domain for affiliate tracking.
Before You Start
Make sure you have:
- Active AffRank account
- Access to your website’s code (or website admin panel)
- Your website is already live/public
- 5-10 minutes to complete setup
Step 1: Add Your Domain
In Your Dashboard
- Navigate to Domain Management
- Click Add New Domain
- Enter your domain name:
example.com(notwww.example.com)blog.example.com(if using subdomain)
- Select your domain’s primary language
- Click Add Domain
Your domain is now registered in AffRank!
Step 2: Install the AffRank Script
Get Your Script
- Go to Script Generator
- Click Copy Script to copy your tracking script
- Script looks like:
<script src="https://affrank.io/script/YOUR_USER_ID.js"></script>
Install on Your Website
Copy and paste the script into your website’s <head> section:
<!DOCTYPE html><html><head> <title>My Website</title> <!-- Paste AffRank script here --> <script src="https://affrank.io/script/YOUR_USER_ID.js"></script></head><body> ...</body></html>For WordPress, Shopify, Wix, Squarespace, Webflow: Use your platform’s header code injection or custom code section to add the script to the <head> tag.
Verify Script Installed
- Visit your website
- Press F12 (Developer Tools)
- Go to Console tab
- You should see:
AffRank v1.x loaded successfully
If you don’t see this:
- Check script is in
<head>tag - Verify URL is correct
- Clear browser cache
- Try different browser
Step 3: Verify Your Domain
Automatic Verification (Recommended)
After script is installed:
- Go back to Domain Management
- Find your domain
- Click Verify Domain button
- AffRank checks for script installation
- Domain automatically verifies ✅
This usually takes 1-5 minutes
If Automatic Verification Doesn’t Work
Try these methods:
Method 1: Wait and Retry
- Wait 10 minutes
- Visit your website again
- Click Verify again
Method 2: HTML File Verification
- Click Verify Domain
- Select HTML File method
- Download verification file
- Upload to domain root (
example.com/verification.html) - Click Verify
Method 3: DNS Verification
- Click Verify Domain
- Select DNS method
- Copy DNS TXT record
- Add to your domain’s DNS settings
- Wait up to 24 hours for propagation
- Click Verify
Step 4: Add Your First Link
Domain is verified! Now add a link:
- Go to Affiliate Links
- Click Add New Link
- Enter keyword:
best web hosting - Enter affiliate URL:
https://myaffiliate.com/hosting - Click Create Link
Step 5: Create Content with Keywords
For AffRank to insert links:
- Write content with your keywords
- Include phrases like “best web hosting”
- Publish on your website
- AffRank will automatically add links
Example
Looking for the best web hosting?
Many people ask me about the best web hosting for beginners.The answer depends on your needs...AffRank will convert “best web hosting” to an affiliate link automatically.
Step 6: Monitor Your Links
After content is published:
- Go to Analytics Dashboard
- Wait 5-10 minutes for data
- You should see:
- Pages analyzed
- Links inserted
- Clicks (if anyone visits)
Troubleshooting Setup
Domain Won’t Verify
Problem: Script installed but domain won’t verify
Solutions:
- Verify script is in HTML head tag
- Wait 10 minutes and try again
- Check script works (F12 console)
- Try DNS or HTML file method
- Contact support
Script Not Loading
Problem: Console doesn’t show AffRank message
Solutions:
- Verify User ID is correct
- Check script is properly closed:
</script> - Clear browser cache: Ctrl+Shift+Del
- Try incognito window
- Check browser console for errors
Links Not Appearing
Problem: Script loads but links aren’t inserted
Solutions:
- Verify keywords match your content exactly
- Wait 10 minutes for sync
- Check that link is active (not paused)
- Verify you’re on published website
- Check script runs without errors
Next Steps
Success Checklist
✅ Domain registered in AffRank ✅ Script installed on website ✅ Script loads in browser console ✅ Domain verified ✅ First link created ✅ Keywords in your content ✅ AffRank inserting links automatically ✅ Analytics showing data
Congratulations! Your AffRank setup is complete! 🎉