Skip to content

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

The simplest way to install AffRank is by adding a single script tag to your website.

  1. Copy Your Script

    • Log in to your AffRank dashboard
    • Navigate to Script Generator
    • Click Copy Script
  2. 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>
  3. 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:

  1. Create a new custom HTML tag
  2. Paste your AffRank script
  3. Set trigger to “All Pages”
  4. Publish the changes

Method 3: WordPress/CMS Plugins

WordPress

  1. Install the AffRank WordPress Plugin
  2. Activate the plugin
  3. Enter your User ID in settings
  4. 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:

  1. 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
  2. Verify Script Loading

    • Open Network tab in Developer Tools
    • Refresh the page
    • Look for requests to https://affrank.io/script/...
    • Should return status 200
  3. 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
  • 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

Next Steps

Need Help?