Track Meeting Conversions
Capture referrals through your HubSpot Meetings
Contact Support for Easy Setup
Referral Rock's support team can add conversion tracking to your form for you.
Submit a request. Prior to submitting, ensure the Referral.js SDK is installed on your site.
If you want to set it up yourself, use the guide below.
Overview
Tracking when a referral schedules a HubSpot meeting is easy with our conversion script.
To setup this conversion script you will need to be able to add JavaScript code to the <head>
section of the webpage your form is on.
Referral.js SDK Required
The website must have the Referral.js SDK installed to track conversions.
Setup & Testing
Use the recipe and example script below to create a script for your forms.
As you determine what data to save with your referral, keep in mind it is usually only necessary to save name, email, and an amount (if applicable) in Referral Rock. The Send Referrals to Contacts will add referral data to the contact in HubSpot, and you can use our HubSpot Customers to Referrals integration to add additional HubSpot property to the referral in Referral Rock if needed.
HubSpot is where all your data lives, so it's generally not needed to have additional form or HubSpot data in Referral Rock about the referral.
Script Recipe to Build Script
Base Script for You to Modify
Use the below script to customize parameters on lines 9
thru 20
to your form's fields.
<script>
window.addEventListener( 'message', function(event) {
if ( event.origin === "https://meetings.hubspot.com" && event.data.meetingBookSucceeded ) {
var bookingsContact = event.data.meetingsPayload.bookingResponse.postResponse.contact;
window.referralJS = ((window.referralJS !== null && window.referralJS !== undefined) ? window.referralJS : {});
window.referralJS.conversion = {
debug: "false",
parameters: {
email: bookingsContact.email,
firstName: bookingsContact.firstname,
lastName: bookingsContact.lastname,
customFields:{
customText:{
"textfield1": bookingsContact.fieldname1,
"textfield3": bookingsContact.fieldname2,
"textfield2": bookingsContact.fieldname3,
},
customOption:{
"dropdownfield4": bookingsContact.fieldname4,
"dropdownfield5": bookingsContact.fieldname5,
}
}
}
};
}
});
</script>
Updated 30 days ago