Track Signups with Referral Codes

Last updated: March 11, 2026

Rally lets you track where participants sign up from by adding a &ref=[code] query parameter to any signup form or public study link URL.

Simply add &ref=[code] to the end of the URL and replace [code] with a unique identifier for each traffic source, such as facebook or newsletter, and Rally will automatically capture it as a referral code property on each participant.

Before sharing, always make sure to test each referral link you create to ensure it's set up correctly and works as expected!

Below is an example of how an shareable link can be modified to include a referral code:


Referral code properties

Rally tracks referral codes at signup and surfaces them as filterable properties on people tables. This lets you see which referral codes brought participants to your studies and forms.

Here are details of the various Referral Code related properties Rally offers:

All Referral Codes

All referral codes associated with a person's signups across all studies and forms in the workspace

Study First Signup Referral

The first referral code used when this person signed up for a study

Study Last Signup Referral

The most recent referral code used when this person signed up for a study

Form First Signup Referral

The first referral code used when this person signed up through a panel form

Form Last Signup Referral

The most recent referral code used when this person signed up through a panel form


Best practices using referral codes

  • Unique Codes: Ensure that each source has a unique `ref` code.

  • Consistent Naming: Use a consistent naming convention for `ref` codes.