What Is Referral Code? Definition, Examples, and Affiliate Market

By clicking "Accept", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Preferences

Reject

Accept

[Powered by\

Manage Consent Preferences

Essentials

Always active

Necessary for the site to function. Always On.

Google

Privacy Policy

Name

rc::c

Description

Used by Google reCAPTCHA to store challenge state and token data

Type

Session Storage

Retention:

Session in browser local storage

Name

rc::a

Description

Used by Google reCAPTCHA to store internal session analytics and risk scoring data for bot detection

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

__Secure-YNID

Description

It's a YouTube cookie used to enhance user experience by storing video player preferences and aiding in secure log-ins and spam detectio

Type

Cookie

Retention:

180 days

Name

_GRECAPTCHA

Description

Risk analysis and spam prevention for forms.

Type

Cookie

Retention:

6 months

Stripe

Privacy Policy

Name

__stripe_sid

Description

Session identifier used for payment fraud prevention.

Type

Cookie

Retention:

30 minutes

Name

__stripe_mid

Description

Fraud prevention and device identification during billing.

Type

Cookie

Retention:

1 year

Cloudflare

Privacy Policy

Name

_cfuvid

Description

Security and rate-limiting identifier.

Type

Cookie

Retention:

session

Name

__cf_bm

Description

Bot management and security protection cookie.

Type

Cookie

Retention:

30 Minutes

LeadDyno

Privacy Policy

Name

_leaddyno_session

Description

Maintains authenticated user session, CSRF protection, flash messages, and login state.

Type

Cookie

Retention:

session / 24 hours

Name

LD_APP_SID

Description

App session identifier used to track signed-in merchant sessions.

Type

Cookie

Retention:

30 minutes

Analytics

Analytics

Measures usage and improves your experience.

Zendesk Widget

Privacy Policy

Name

ZD-suid

Description

This cookie is used to create a sessionId and track analytics events for pages that load a Web Widget on them.

Type

Local Storage

Retention:

20 minutes

Name

ZD-buid

Description

This cookie is used to create a deviceId and track analytics events for pages that load a Web Widget on them.

Type

Session Storage

Retention:

forever

optibase.io

Privacy Policy

Name

optibaseCachedInitializeResponse-testsfalse-conversionsfalse

Description

Store cached experiment configuration and conversion settings to run AB tests and measure conversions across visits.

Type

Local Storage

Retention:

30 days

Statsig

Privacy Policy

Name

statsig.stable_id.501823423

Description

Statsig SDK cache data for feature gates, experiments, and evaluation results

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

statsig.stable_id.184042872

Description

Statsig SDK cache data for feature gates, experiments, and evaluation results

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

statsig.session_id.184042872

Description

Statsig SDK cache data for feature gates, experiments, and evaluation results

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

STATSIG_LOCAL_STORAGE_STABLE_ID

Description

Stores a stable device identifier for Statsig feature flag and experiment assignment

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Sprig

Privacy Policy

Name

userleap.ids

Description

Stores anonymous user identifiers for Sprig (formerly UserLeap) to enable survey targeting and user research

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

sprig.disableReplayRecording

Description

Stores a flag indicating whether Sprig session replay recording is disabled for the current user

Type

Session Storage

Retention:

Persistent in browser local storage until manually cleared

Name

sprig.anon.env.vid.map

Description

Maps anonymous visitor IDs to Sprig environments for consistent user targeting across sessions for in-product surveys

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

PostHog

Privacy Policy

Name

ph_phc_5bpupckWJHmhrnZoZJ8m6EZyAjqL7SMZVClK66wP33M_window_id

Description

Used by PostHog Analytics to get insights into user behavior and track events.

Type

Session Storage

Retention:

Configurable by customer, default 7 years for events

Name

ph_phc_5bpupckWJHmhrnZoZJ8m6EZyAjqL7SMZVClK66wP33M_primary_window_exists

Description

Used by PostHog Analytics to get insights into user behavior and track events.

Type

Session Storage

Retention:

Configurable by customer, default 7 years for events

Name

ph_phc_5bpupckWJHmhrnZoZJ8m6EZyAjqL7SMZVClK66wP33M_posthog

Description

Used by PostHog Analytics to get insights into user behavior and track events.

Type

Session Storage

Retention:

Configurable by customer, default 7 years for events

HubSpot

Privacy Policy

Name

hubspotutk

Description

Used for user authentication and visitor identification

Type

Cookie

Retention:

2 years

Name

__hstc

Description

Used for website analytics to track visitors and sessions

Type

Cookie

Retention:

2 years

Name

__hssrc

Description

Used for website analytics to determine if the visitor has restarted their browser

Type

Cookie

Retention:

Session

Name

__hssc

Description

Used for website analytics to track session data

Type

Cookie

Retention:

30 minutes

Google Analytics

Privacy Policy

Name

_gid

Description

Distinguishes users for analytics reporting.

Type

Cookie

Retention:

24 hours

Name

_ga_Z8EST880Z8

Description

Used by Google Analytics 4 to collect data on the number of times a user has visited the website as well as dates for the first and most recent visit

Type

Cookie

Retention:

2 years

Name

_ga_K4P5RLZ8KR

Description

Used by Google Analytics 4 to collect data on the number of times a user has visited the website as well as dates for the first and most recent visit

Type

Cookie

Retention:

2 years

Name

_ga

Description

Registers a unique ID that is used to generate statistical data on how the visitor uses the website

Type

Cookie

Retention:

2 years

Marketing

Marketing

Used for targeted advertising.

YouTube

Privacy Policy

Name

ytidb::LAST_RESULT_ENTRY_KEY

Description

Stores the last search result entry that was clicked by the user to improve the user experience by providing more relevant search results in the future

Type

Local Storage

Retention:

Persistent in browser local storage until manually cleared

Name

YSC

Description

Used to track user interactions and measure advertising effectiveness for embedded videos

Type

Cookie

Retention:

Session

Name

VISITOR_PRIVACY_METADATA

Description

Stores visitor privacy settings and consent information for personalized advertising

Type

Cookie

Retention:

5 months

Name

VISITOR_INFO1_LIVE

Description

Used as a unique identifier to track viewing of videos and estimate bandwidth usage

Type

Cookie

Retention:

5 months

calendly.com

Privacy Policy

Name

_mf

Description

Maintain a temporary session identifier to recognize the user and support secure scheduling during the visit.

Type

Session Storage

Retention:

session

Name

_cache

Description

Stores cached scheduling and preference data needed to load Calendly widgets and pages quickly and keep users signed in.

Type

Local Storage

Retention:

persistent

Name

1

Description

Maintain and identify the user session to enable secure Calendly scheduling flows and related authentication on embedded pages.

Type

Session Storage

Retention:

session

Meta

Privacy Policy

Name

lastExternalReferrerTime

Description

Detects how the user reached the website by registering their last URL-address

Type

Local Storage

Retention:

Persistent

Name

lastExternalReferrer

Description

Detects how the user reached the website by registering their last URL-address

Type

Local Storage

Retention:

Persistent

Name

_fbp

Description

Used by Facebook to deliver a series of advertisement products such as real time bidding from third party advertisers

Type

Cookie

Retention:

3 months

LinkedIn

Privacy Policy

Name

li_adsId

Description

Stores a unique visitor identifier used by LinkedIn Ads for conversion tracking and audience matching across sites using the LinkedIn Insight Tag

Type

Local Storage

Retention:

30 days

Google Analytics

Privacy Policy

Name

_gcl_ls

Description

Used by Google AdSense to understand user interaction with the website by generating analytical data

Type

Local Storage

Retention:

90 days

Name

_gcl_au

Description

Used by Google Ads to take information from ad clicks and store it in a first-party cookie so that conversions can be attributed outside the landing page

Type

Cookie

Retention:

3 months

Name

LD_U

Description

Track and attribute affiliate marketing visits, including initial landing page, to measure campaign performance and payouts.

Type

Cookie

Retention:

13 months

Name

LD_T

Description

Store a unique visitor ID so affiliate clicks, leads and purchases can be linked and commissions attributed.

Type

Cookie

Retention:

100 years

Name

LD_S

Description

Stores internal state needed to periodically send visit and lead data for affiliate attribution and marketing analytics.

Type

Cookie

Retention:

5 minutes

Google

Privacy Policy

Name

id

Description

This cookie is used for targeting, analyzing and optimisation of ad campaigns in DoubleClick/Google Marketing Suite

Type

Session Storage

Retention:

2 months

Name

__gtm_campaign_url

Description

Stores campaign and referrer URL for signup attribution

Type

Cookie

Retention:

persistent

Name

__Secure-ROLLOUT_TOKEN

Description

Registers a unique ID to keep statistics of what videos from YouTube the user has seen.

Type

Cookie

Retention:

180 days

LeadDyno

Privacy Policy

Name

LD_R

Description

Stores referring URL for affiliate attribution tracking.

Type

Cookie

Retention:

session

Name

LD_L

Description

Stores identified lead information for affiliate attribution.

Type

Cookie

Retention:

persistent

Name

LD_H

Description

Integrity hash linking visitor activity to lead records.

Type

Cookie

Retention:

persistent

Personalization

Personalization

Remembers your preferences and provides enhanced features.

YouTube

Privacy Policy

Name

yt-icons-last-purged

Description

Store a timestamp of when YouTube icon assets were last cleared so the embedded player can load interface graphics efficiently and consistently.

Type

Local Storage

Retention:

persistent

figma.com

Privacy Policy

Name

initialPathName

Description

Store the initial URL path a user visits so the app can restore or adapt navigation flows during the current session.

Type

Session Storage

Retention:

session

LeadDyno

Privacy Policy

Name

reportings_affiliate_status_filter

Description

Stores affiliate status filter preference.

Type

Cookie

Retention:

session

Name

reportings_affiliate_daterange

Description

Stores reporting date range filter preference.

Type

Cookie

Retention:

session

Name

affiliates_tab_daterange

Description

Remembers selected date range on affiliate dashboard.

Type

Cookie

Retention:

session

Name

affiliates_only

Description

Stores affiliate-only reporting view preference.

Type

Cookie

Retention:

session

Reject All

Accept All

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form.

Preferences

Log In Start a Free Trial

Home

/

Glossary

/

Referral Code

Referral Code

A unique code affiliates share so referrals can be tracked without a link.

What Is a Referral Code?

A referral code is a unique code assigned to a customer, affiliate, partner, or advocate so a business can track the people they refer.

When someone shares their referral code and a new customer uses it to sign up, make a purchase, book a service, or complete another desired action, the business can identify who made the referral. Depending on the program, the person who shared the code may earn a reward, commission, discount, credit, or other incentive.

Referral codes are commonly used in referral programs, affiliate programs, customer advocacy programs, and partner marketing campaigns.

How Referral Codes Work

Referral codes help connect a new customer back to the person or partner who referred them.

Here’s how the process typically works:

  1. A business creates a referral or affiliate program.
  2. Each participant receives a unique referral code.
  3. The participant shares that code with friends, customers, followers, or their audience.
  4. A new customer enters the code during signup, checkout, or booking.
  5. The business tracks the referral.
  6. The referrer earns a reward if the referral meets the program’s requirements.

For example, a customer might share a code like SARAH10, and anyone who uses that code at checkout receives a discount while Sarah gets referral credit.

A referral code makes it easier to reward the people who are already helping a business grow through word of mouth.

Referral Code vs. Referral Link

Referral codes and referral links serve a similar purpose: they both help businesses track referrals.

A referral link is a unique URL that tracks the referral automatically when someone clicks it.

A referral code is a unique code that the referred customer manually enters during signup, checkout, or another conversion step.

Many businesses use both. A referral link is convenient for online sharing, while a referral code is easy to remember, share verbally, include in social posts, or use in offline conversations.

More resources

\ \ The Affiliate Program Audit Checklist: 11 Areas Every Manager Should Review\ \ Use this affiliate program audit checklist to review affiliate activity, commissions, tracking, compliance, and ROI. Includes a free PDF.\ \ 7/1/2026\ \ arrow icon\ \ Read More](/content/blog/affiliate-program-audit-checklist/index.html)

\ \ Building an Affiliate Funnel That Drives Revenue for Your Company\ \ Learn how to set up your affiliate funnel to drive value for your brand and company. The complete guide to setup and improve your funnel. \ \ 9/16/2025\ \ arrow icon\ \ Read More](/content/blog/build-affiliate-funnel-for-brand/index.html)

\ \ Our Stripe Affiliate Integration Makes Program Tracking Easy\ \ LeadDyno’s Stripe affiliate integration allows you to easily sync your affiliate marketing program from inside your Stripe account.\ \ 8/29/2025\ \ arrow icon\ \ Read More](/content/blog/affiliate-marketing-stripe-integration/index.html)

Get Started Today

Launch your affiliate program with confidence thanks to our 30-day free trial. Begin building a program that delivers results.

Start Free Trial

30 Days Free

Arrow