Skip to content

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.

Go to DevDiggers Plugins → Affiliates → Configuration → Referrals.

The Affiliates Referrals settings tab with link, cookie, coupon and visit sections

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.

The URL Parameter field on the Referrals settings tab

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

The Default Referral Token dropdown on the Referrals settings tab

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

The Custom Referral Tokens toggle on the Referrals settings tab

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.

The Cookie Name field on the Referrals settings tab

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.

The Cookie Life field on the Referrals settings tab

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.

The Overwrite Existing Cookie and Clear Cookie After Purchase toggles

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.

The Enable Coupon Tracking toggle on the Referrals settings tab

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.

  • 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.

The Track All Clicks toggle and the Debounce Time field on the Referrals tab

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.