Referral Settings
The Referrals tab decides how a click becomes a tracked referral. These are the fields that determine who gets credited for an order and for how long.
Open Referral settings
Section titled “Open Referral settings”Go to DevDiggers Plugins → Affiliates → Configuration → Referrals.

Referral Link Settings
Section titled “Referral Link Settings”URL Parameter is the query string that carries the affiliate token. The default is ref, so a
referral link looks like https://yourstore.com/?ref=12. Change it to partner, a or anything
else that fits your brand.

Default Referral Token picks what the token after the parameter is: the affiliate’s User ID or their Username.

Custom Referral Tokens lets affiliates set their own token from the dashboard, so a partner can
share ?ref=acmeblog rather than ?ref=12.

Tracking Cookie Configuration
Section titled “Tracking Cookie Configuration”Cookie Name is the browser cookie the token is stored in. The default is
ddwcaf_referral_token. Changing it invalidates every cookie already set, so every visitor
currently mid-window stops being tracked. Change it once, early, or not at all.

Cookie Life (Days) is how long a click keeps earning. The default is 7. A visitor who clicks today and buys on day six still credits the affiliate; on day eight they do not.

Overwrite Existing Cookie decides whether a second affiliate’s link replaces the first one. On means last click wins. Off means the first affiliate to send the visitor keeps the credit.
Clear Cookie After Purchase deletes the cookie once an order completes. A repeat purchase by the same customer then pays nothing unless they click a fresh link.

Coupon Referral Integration
Section titled “Coupon Referral Integration”Enable Coupon Tracking lets you attach a WooCommerce coupon to an affiliate. A customer who applies that code is credited to the affiliate exactly as if they had clicked a link. That suits partners promoting offline or on video, where a URL is awkward.
![]()
Dashboard Coupons Tab controls who sees the Coupons section on the affiliate dashboard: Show to all affiliates, or Only show if they have coupons assigned.
Visit Analytics Settings
Section titled “Visit Analytics Settings”- Track All Clicks logs a row in the Visits table for every referral click. It is on by default. Turn it off if you only care about commissions and would rather not store click data. Commissions still work with it off; you just lose the visit history and the conversion rate.
- Debounce Time (Seconds) is the minimum gap before the same visitor’s repeat click is logged again. It stops one person refreshing a page twenty times and inflating the numbers.

What is never tracked
Section titled “What is never tracked”Two exclusions are built in and apply to both versions.
- Administrators. A logged-in administrator clicking a referral link sets no cookie and logs no visit, so testing your own links from an admin session records nothing.
- The affiliate’s own link. An affiliate clicking their own link is ignored.
Where to go next
Section titled “Where to go next”- Commission Settings to set what a tracked referral pays.
- Visits to read the click log this tab produces.

