Click Tracking
Click tracking is built into the AffRank script — no additional configuration is required. Every time a visitor clicks an AffRank-injected link, the click is recorded before they’re sent to the affiliate destination.
What gets tracked automatically
When a visitor clicks a link:
- The keyword that was clicked
- The page URL where the click happened
- The referrer (where the visitor came from — Google, Reddit, direct, etc.)
- The device type, browser, and OS
- A session ID used to match the click to a postback conversion later
This happens client-side, triggered by the injected link before the redirect fires.
Viewing your click data
Go to Analytics Dashboard to see:
- Total clicks across all domains and keywords
- Clicks by keyword — which links are getting used
- Clicks by page — which articles drive the most clicks
- Clicks by source — where your traffic comes from
- Click trend — daily chart to spot patterns and drops
Click data is real-time — there’s no delay between a visitor clicking and it appearing in your dashboard.
Verifying tracking is working
- Open a page on your site that has an AffRank-linked keyword
- Click the link
- Go to Analytics Dashboard
- The click should appear immediately
If you don’t see the click:
- Make sure you’re viewing the correct domain and date range in the dashboard
- Open DevTools (F12) → Network tab → look for a request to
api.affrank.aiwhen you click the link - Check that the link is Active in your Affiliate Links dashboard
Connecting clicks to revenue
Click tracking alone tells you what gets clicked. To see which clicks actually earn commissions, you need to set up postback tracking with your affiliate network. See Postback Setup.
Once postbacks are flowing, the Revenue Mapping Dashboard shows EPC (earnings per click) broken down by keyword and page — so you know exactly what’s worth optimizing.
CSV export
Click Export CSV in the Analytics Dashboard to download your full click history. The export includes every tracked field, useful for building your own reports in Google Sheets or Excel.