Sharing & Referral Links
Make it effortless for customers to share their referral code with built-in sharing tools and trackable links.
Referral links with UTM tracking
Every referral code automatically generates a shareable URL with UTM parameters for analytics tracking:
When a friend clicks this link, the ref parameter is stored and automatically applied at checkout — no manual code entry needed.
Native device sharing
On devices that support the Web Share API (most mobile browsers), customers see a Share button that opens the native share sheet. This allows direct sharing to:
- WhatsApp, iMessage, Telegram, and other messaging apps
- Email clients
- Social media apps (Facebook, Instagram DMs, Twitter)
- AirDrop, Nearby Share, etc.
The shared message includes a friendly text like: "Get [discount] off your first order at [Restaurant Name]! Use my referral code: [CODE] or order here: [link]"
Copy-to-clipboard
Two copy buttons are always available regardless of device:
- Copy Code — Copies just the referral code (e.g.
SARAH7K2M). - Copy Link — Copies the full referral URL with UTM parameters.
Both buttons show a brief confirmation ("Copied!") after clicking.
Auto-apply at checkout
When a new customer arrives via a referral link, the system:
- Reads the
refURL parameter. - Stores it for the session.
- When the customer reaches checkout and has entered their phone number, the code is automatically validated.
- If valid, the discount is applied without requiring manual input.