HubSpot
Last updated
Last updated
The ReferralHero/HubSpot integration is a robust solution offering several powerful functionalities:
Import existing contacts from HubSpot to ReferralHero
Automatically Add NEW HubSpot contacts to ReferralHero
Sync ReferralHero subscribers to your HubSpot account
Use your own HubSpot form to add new HubSpot contacts to your ReferralHero campaign
Trigger a ReferralHero conversion event when there is a lifecycle or deal stage update on HubSpot
If you have existing contacts in your HubSpot account and you want to import/subscribe them all to your ReferralHero campaign, you'll want to follow these instructions:
Go to your Campaign Dashboard > Subscribers > Import and click on the tab Import from CRM.
If you haven't connected your HubSpot account yet, please do it now by clicking on the button Setup Integration.
Choose the HubSpot account from which you want to import contacts/subscribers.
Specify a URL for the referral link. This is the URL that we will use to generate the referral link for your subscribers. For example, if you use http://mywebsite.com, the referral link will be 'http://mywebsite.com?mwr=123456'
Optional: Choose to "Send Welcome Email" at the time of import. Note, you must activate your Welcome Email in Automations before enabling the "Send Welcome Email".
Click on the button Import
We will import your subscribers into your ReferralHero campaign immediately. Depending on how many subscribers you are importing, it might take from a few minutes to several hours. We will send you an email when the import is finished.
NOTE: If you turn on the HubSpot integration (see the section below), ReferralHero will populate the custom fields in your HubSpot account with the subscriber's values.
ReferralHero's HubSpot Contact Created event is a proprietary algorithm that accurately tracks and identifies people as organic subscribers or referrals and adds them to your ReferralHero campaign when a new contact is created in your Hubspot account.
In ReferralHero, navigate to Edit Campaign > Integrations > HubSpot, and click the "Connect your HubSpot account" button.
Choose the HubSpot account you want to connect to ReferralHero
Choose the HubSpot contact list from the HubSpot Domain dropdown
Click Save
The "Hubspot Contact Created" event is automatically created upon account connection.
If the event is not created in your account, manually create the "Hubspot Contact Created" event.
Utilize the "Add Event to Track" button within the HubSpot integration page. Choose the “Create Contact” event type.
Decide if you want to add organic subscribers and/or referrals only when a new HubSpot Contact Created event occurs.
The integration will automatically create the following custom fields in your HubSpot account.
Now when a person signs up for your ReferralHero campaign, they will be immediately added to your HubSpot account.
NOTE: ReferralHero will automatically update these custom fields when a person signs up or when things change (eg: when a subscriber refers a new person, their TOT_REF value changes).
Generally, it is recommended to use our Contact Created event (explained above) however if you want to specifically track individual HubSpot forms or if you have a high volume form (100+ new contacts per day) you can track form submissions to ReferralHero by incorporating the ReferralHero JavaScript into your HubSpot form.
Add ReferralHero JavaScript to Your HubSpot Form
Add one of the following JavaScript codes to the end of your HubSpot HTML form code. This code will seamlessly track new signups from your HubSpot form to your ReferralHero campaign.
NOTE: You need to replace the hubspot_form_id with your own HubSpot form ID.
Use RH.form.submit() to add both organic and track referrals to the referral campaign
Use RH.pendingReferral() to track only referrals with ‘Pending’ status to the multi-step conversion event campaign
2. (Optional)
To send other values from the HubSpot form to your ReferralHero campaign add this to the data line:
For example to send submitted data to the ReferralHero Extra Field profile field add:
3. Now when someone signs up through your HubSpot form, they will be added to your HubSpot contact list and ReferralHero campaign.
If your HubSpot contacts undergo a "Lifecycle Stage" or a "Deal Stage", you can trigger the following actions in ReferralHero:
Add organic subscribers and referrals
Add referrals only
Total spend updates
Change referral status (most common use case)
Steps:
Click the "Add Event To Track" button.
Provide a name for the event.
Select the HubSpot event type and stage to track.
Choose the 'Trigger Event Type' option corresponding to the action you want to perform in ReferralHero, such as changing a referral status.
CODE
Subscriber's unique referral code
EX_FIELD
Subscriber's extra field value
EX_FIELD_2
Subscriber's second extra field value
LAST_REF
Timestamp of last referral
POINTS
Subscriber’s total accumulated points
POSITION
Subscriber’s position
REF_LINK
Subscriber's unique referral link
REFERRER
Subscriber’s referrer’s name
SOURCE
Subscriber's source. If empty value will be "None"
SUB_ID
Subscriber's id
TOT_REF
Subscriber's total number of referrals
EM_LINK
Subscriber’s email link
FB_LINK
Subscriber’s Facebook link
TW_LINK
Subscriber’s Twitter link
MWR
Subscriber’s referrer’s referral code