By default, Gameball generates a unique dynamic link for every customer (via Adjust or Branch.io). The referral code is embedded inside that link itself, so when a friend clicks it, the code is carried over to the destination URL automatically. If generating a unique dynamic link per customer is too costly for your Adjust or Branch.io plan, there are two alternatives:Documentation Index
Fetch the complete documentation index at: https://docs.gameball.co/llms.txt
Use this file to discover all available pages before exploring further.
| # | Alternative | How the referral code travels |
|---|---|---|
| 1 | Single shared dynamic link + query parameter | Appended to the link as ?GBReferral=CODE |
| 2 | No dynamic link — manual code entry | Customer types the referral code into a form field |
Alternative 1: Single Shared Dynamic Link with a Query Parameter
Instead of one unique link per customer, you configure one shared dynamic link (from Adjust or Branch.io) used for all referrers. Gameball appends each customer’s referral code to that link as a query parameter at runtime.Dashboard Setup
Navigate to the Referral Settings
In your Gameball dashboard, go to Programs → Referrals → Settings → Referral landing page.

Enter your shared dynamic link URL
Set the URL field using your base dynamic link, the parameter name you want, and the Or with a different parameter name:
{ReferralCode} placeholder. For example:| Part | What it is |
|---|---|
https://yourapp.app.link/refer | Your base dynamic link (from Branch.io, Adjust, or your custom deep link domain) |
GBReferral / ReferralCode | The parameter name — you choose this, Gameball doesn’t enforce one |
{ReferralCode} | Placeholder Gameball replaces with each customer’s unique referral code at runtime |
How It Works
After configuration, the link shown inside the widget for each referrer follows this pattern:Client Responsibilities
- Read the
GBReferral(or your chosen parameter name) value from the link before redirection occurs. - Persist the referral code locally (e.g., in
localStorage, a cookie, or session storage) so it survives until the friend completes registration. - Pass the stored referral code as
referrerCodein the Create/Update Customer API call when the friend signs up.
Alternative 2: Manual Referral Code Entry (No Dynamic Link)
This approach removes dynamic links entirely. Each customer still has their own Gameball-issued referral code — they just share it directly rather than via a link.How It Works
- The referrer shares their code through any channel (text, social media, word of mouth).
- You add a “Referral Code” input field on your registration form.
- When the new user submits the form, you pass the entered code as
referrerCodein the Create/Update Customer API.
Client Responsibilities
-
Add an optional “Referral Code” input field to the registration form:

-
On account creation, include the entered value as
referrerCodein the Create/Update Customer API payload:
Default Flow vs. Alternatives — Comparison
The following comparison helps clarify what changes across these approaches. The final step — passing the referral code to the Gameball registration endpoint — is the same in all flows. What differs is where the code comes from and when you need to capture it.
| Aspect | Default (Unique Link per Customer) | Alternative 1 (Shared Link + Query Param) | Alternative 2 (Manual Entry) |
|---|---|---|---|
| Link per customer | Unique per customer | One shared link for all | No link |
| Referral code visible in widget link? | No — embedded inside the link | Yes — shown as ?GBReferral=... | N/A |
| Code present after redirection? | Yes — read from final URL | No — must be captured before redirect | N/A |
| When does client capture the code? | After redirection | Before redirection | At form submission |
Client passes referrerCode to registration? | Yes | Yes | Yes |
| Dynamic link cost | One link generated per customer | One shared link for all customers | No dynamic links needed |
Important Notes
Regardless of which alternative you use,
referrerCode must be passed during initial customer registration. Gameball ignores it silently on subsequent updates — the customer is still created, but no referral relationship is formed.Related Articles
Integrating Gameball Referrals
The standard referral flow across web, mobile, and POS channels.
Adjust Integration
Configure Adjust as your mobile deep link provider.
Branch.io Integration
Configure Branch.io as your mobile deep link provider.
Create / Update Customer API
Attach
referrerCode when registering a referred friend.