Table of Contents


Using Formsite to capture referral information is ideal for any sales process that requires leads to fill out a form. We'll go step-by-step through the setup needed to redirect referrals to your form and to track referral form completions.

Setting up the Referral Redirect Page

Step 1: Obtain your Formsite form link. The steps are outlined below.

  1. Log in to your Formsite account and choose the form that you want to send referrals to.
  2. Click on the Share tab.
  3. Select Links from the menu on the left side of the page.
  4. Select Form Link provided on the page and save it for the next step.

Step 2: Now that you have the form link that you want to send referrals to, it's time to set this as the referral page in Referral Rock.

  1. Navigate to Program Editor > Share or click here
  2. Under Referral Destination, select Change Destination
  3. Make sure the Webpage Redirect option is selected and enter the URL to the page where your Formsite Form is hosted.

Referral Conversion Tracking in Formsite

The next step in setting up Referral Rock to work with Formsite is tracking conversions on your form. This will tell us which referral filled out the form, which member sent them, and any information we choose to send back from the form submission to Referral Rock.

Formsite Pipes

We will be passing information back to Referral Rock using pipes. These are Formsite's way of referencing information submitted with the form. To learn more about piping information with Fomsite, check out this article. A list of pipes can be found in Formsite by by clicking Insert Pipe in Formsite Settings > Success Pages > Standard Success Page.

Once you find your list of pipes, add the pipes next to the correct parameter in the Formsite Event Script below. Your event script should look like the example script on the bottom of the page with different pipe numbers. After your event script is fully configured continue to the steps below.

  1. Login to your Formsite account and select your referral form.
  2. Click the Form Settings tab.
  3. Select Success Pages from the menu on the left side of the page.
  4. Select Standard Success Page for the Page Type and click the message text box.
  5. In the text box, click the Source Code Button (it looks like <>).
  6. Add your Formsite Event Script (example below) with the parameter references to the source code editor.
  7. Click Save at the top right of the form.

Formsite Example Event Script

The following script is an example only. You must replace "example" with your account's name which can be found here before the closing </script> tag.
<script type="text/javascript">
window.rrSpace = (
rrSettingsConversion = {
debug: "false",
parameters: {
externalidentifier: "[pipe:reference_#]",
firstName: "[pipe:reference_#]",
lastName: "[pipe:reference_#]",
email: "[pipe:reference_#]",
phone: "[pipe:reference_#]"
(function (f, r, n, d, b, y) { b = f.createElement(r), y = f.getElementsByTagName(r)[0]; b.async = 1; b.src = n; = 'RR_DIVID'; y.parentNode.insertBefore(b, y); })(document, 'script', '//');
You can add or remove any parameters in the conversion script. They are listed below for your convenience:
firstname, lastname, fullname, companyname, email, externalidentifier, amount, referralcode, phone, note, publicnote, preferredcontact, customoption1name, customoption2name, customtext1name, customtext2name, customtext3name, customoption1value, customoption2value, customtext1value, customtext2value, customtext3value
Once you add your event script, submit a form and ensure the data is coming through correctly in your Referral Rock Event Log.

How did we do?

Cognito Forms

HubSpot Forms