πAffiliate Links & Codes
# Default link (wallet address)
https://yourwebsite.com?af=0x1f9090aae28b8a3dceadf281b0f12828e676c326
# With a custom code
https://yourwebsite.com?af=my-affiliate-codeGenerating tracking links
import { Fuul } from '@fuul/sdk';
const trackingLink = await Fuul.generateTrackingLink(
'https://yourwebsite.com', // Base URL where pageview events are implemented
'0x1234...', // Affiliate's address
'evm_address' // Identifier type
);
// If the affiliate has registered a code, it is used as the `af` value.
// Otherwise the raw identifier is used: "https://yourwebsite.com?af=0x1234..."Creating affiliate codes
Code rules
Error handling
Error
Cause
Updating affiliate codes
Getting affiliate info
Checking code availability
Updating rebate rates
API reference
Feature
API endpoint
Reference
Last updated