# Share your referral link

Give each salesperson a link to your site so the shoppers they send are assigned to them.

Audience: dealer-staff
Availability: available
Canonical source: https://rooftoprv.com/docs/share-your-referral-link

Everyone on your team has a referral link to your site. When a new shopper arrives through it and sends an inquiry, the lead is assigned to that person.

## Before you start

- Referral links only assign leads while the **Sales rep URL** rule is on. See [Check that referral links are on](#check-that-referral-links-are-on).
- To change someone's link name, you need the **View team** and **Assign roles** permissions.
- To open the assignment rules, you need the **View team** permission, plus **View all leads** or **View own leads**.
- To change the assignment rules, you need the **Lead assignment rules** permission.

## Copy your referral link

1. Open your profile menu at the top right of the admin.
2. Select **Copy referral link**, under your name and email.
   You see **Referral link copied**.
3. Paste the link in a text, an email, or a social post.

Your link goes to your site's homepage. It ends with `?r=` and your link name, like `?r=john-smith`.

The link works on any page of your site. To send a shopper straight to an RV:

1. Copy that page's address.
2. Add `?r=` and your link name to the end.
   If the address already has a `?` in it, add `&r=` instead.

## Change a link name

> **Warning:** Links that use the old name stop working. A shopper who uses one is assigned by your other rules, and nothing on the page tells them. Send everyone the new link.

Each person's link name starts as their name, like `john-smith`. If their name is blank, it comes from the first part of their email address. Two people with the same name get `john-smith` and `john-smith-2`. A link name doesn't change when someone's name changes later.

1. Select **Admin** in the main menu.
   The **Team** page opens.
2. Select **Edit** on the person's row.
3. Select the **Leads** tab.
4. In **Referral link name**, enter the new name.
   Use lowercase letters and numbers, with single hyphens between words, up to 64 characters. Capital letters become lowercase as you type. Other characters are dropped.
5. Select **Save changes**.
   You see **Team member updated**.
6. To copy the new link, open the person again.
7. Select the copy button next to **Referral link**.

A link name has to be unique on your team. If someone already uses it, you see a message naming it. That includes people who have left your team, so their old links never reach someone new.

To go back to the default, clear **Referral link name** and select **Save changes**. A link name can't be removed. Turn off the rule instead.

## Check that referral links are on

Rules run from top to bottom. The first rule that matches assigns the lead. A rule above **Sales rep URL**, like a round robin or one person rule, assigns the lead first. The referral link is then never used.

1. Go to **CRM** > **Settings** > **Leads** > **Assignments**.
2. If you see **Set up lead assignment**, select it.
   This adds the **Sales rep URL** rule, already on. Only **Staff profile page** is above it.
3. If **Lead assignment is disabled** shows, turn on **Lead assignment** at the top.
4. Find **Sales rep URL** in the list.
5. Make sure its switch is on.
6. Make sure the only rule above it is **Staff profile page**.
   That rule only assigns messages sent from a team member's profile page. To move **Sales rep URL**, use the up arrow beside its number.

If the list has no **Sales rep URL** rule, add it:

1. Select **Add rule**.
2. Select **Sales rep URL**.
3. Select **Add rule**.
   The rule is added at the bottom.
4. Move it up until only **Staff profile page** is above it.

Turning off **Sales rep URL** stops referral links for your whole team, not just one person. The rule covers Sales leads and leads with no type unless you change its **Routes:**.

## What happens next

- When a shopper opens any page of your site through a referral link, your site remembers that link for 30 days. A newer referral link replaces it.
- When that shopper sends an inquiry from a form on your site or the chat, the lead goes to the person whose link they used. That person must still be active on your team.
- Credit applications, phone calls, texts, emails, and leads from Facebook or other lead feeds don't use referral links.
- A returning customer who already has a salesperson keeps them. The referral link only assigns shoppers who don't have one yet.
- The link can also assign a customer whose new inquiry starts fresh after the idle rule moved them. This happens when that setting runs the assignment rules. See [Reassign idle leads](https://rooftoprv.com/docs/reassign-idle-leads).
- The link only works on your own site. A link name from another dealership's site doesn't match anyone on your team.

## Troubleshooting

**A lead from my link went to someone else.**
The shopper may already have had a salesperson. A rule above **Sales rep URL** may have matched first, such as a message sent from a team member's profile page. Or they reached you by phone, text, or a credit application. Check the rule order in **CRM** > **Settings** > **Leads** > **Assignments**.

**I don't see Copy referral link in my profile menu.**
Some sites send every lead to the site's owner. Those sites don't use referral links, so the menu leaves it out.

## Related guides

- [Route leads by lead type](https://rooftoprv.com/docs/route-leads-by-type)
- [Invite team members](https://rooftoprv.com/docs/invite-team-members)
