Documentation

  • How To
  • /
  • Create and Configure Referral Codes

Referral Codes for Mobile Apps

GoMarketMe Referral Codes give affiliates an easy-to-remember way to promote your app when sharing a link is not practical. They are ideal for conversations, podcasts, videos, livestreams, events, presentations, and print.

Affiliate links are optional. Referral codes work even when no affiliate link is used; the user can enter the code directly in your app.

How affiliate links behave depends on your attribution method. With Referral Codes only, affiliate links open a branded download page displaying the affiliate’s referral code and App Store or Google Play buttons. With Links + Referral Codes, link attribution remains enabled and users can also enter a referral code directly in your app.

iOS and Android • Unlimited referral codes

Referral codes are supported on both iOS and Android, with no limit on the number of codes you can create.

Use GoMarketMe’s UI or your own

For the quickest setup, call showReferralCodeTrigger() to display GoMarketMe’s customizable referral-code trigger and sheet. If you do not want to use the built-in UI, collect the code in your own interface and pass it to the GoMarketMe SDK programmatically using the referral-code API for your platform.

Different from offer codes: “Private Campaigns with Offer Codes” are iOS-only and support a maximum of 10 affiliates. Those restrictions do not apply to referral codes.

Set up referral codes in three steps

  1. Update to GoMarketMe SDK 6.0.2 or later and add a code-entry experience. Use showReferralCodeTrigger() for GoMarketMe’s built-in UI, or connect your own code-entry interface to the SDK.
  2. Choose your attribution method. Open Settings → Attribution → Method. Select Referral Codes to use code-based attribution only, or select both Links and Referral Codes to keep link attribution enabled while also accepting referral codes. Save your changes.
  3. Add referral codes to any campaign. Referral codes are available for Public and Private campaigns, whether existing or new. Assign an optional, unique code to each participating affiliate.
GoMarketMe Attribution settings showing Links and Referral Codes selected
Choose Referral Codes alone or enable both Links and Referral Codes under Settings → Attribution → Method.

Customize the in-app experience

With GoMarketMe’s built-in UI, you control how the referral-code experience looks in your app without building the interface yourself. Open Settings → Attribution → Customize Referral Code UI to configure the trigger as a link or button, then customize its text, alignment, typography, colors, border, and spacing.

The live preview shows the complete referral-code sheet, including the title, message, code field, Skip button, Apply Code button, and success or error states.

Customize Referral Codes in GoMarketMe →

GoMarketMe referral-code customization controls with a live mobile preview
Customize the trigger and referral-code sheet while reviewing changes in the live preview.

Assign referral codes to affiliates

Referral codes are available for Public and Private campaigns, whether existing or new. Enter a code when inviting a new affiliate or editing an existing affiliate. Codes are optional, but every code must be unique across all campaigns in your GoMarketMe account.

Choose codes that are short, memorable, and easy to spell. A creator name, brand name, or simple campaign phrase usually works well.

GoMarketMe affiliate invitation form assigning the referral code ASHLEY10 in a Private Campaign
Assign an optional, unique referral code in any new or existing Public or Private campaign.

What users see in your app

If you use the built-in UI, the SDK displays the trigger and referral-code sheet with the appearance you configured in GoMarketMe. A user can enter the code they received and tap Apply Code.

With Referral Codes as the attribution method, users arriving through an affiliate link see the affiliate’s referral code on the branded download page and enter it after opening your app. If you also enable Links, affiliate links can establish attribution directly while referral codes remain available as an additional attribution method. Users without a code can skip the step and continue.

Mobile app showing a user applying the referral code ASHLEY10
Example referral-code experience inside a mobile app.

Best practices

  • Keep codes short and avoid characters that are easy to confuse.
  • Place code entry where new users will see it during onboarding.
  • Use clear trigger text such as “Have a referral code?”
  • Give each affiliate a consistent code they can remember and say aloud.
  • Test a valid code, an invalid code, and the Skip action before releasing your app.