ReferralHero
  • Welcome to the Support Center
  • Common Questions
  • Features
    • Subscribers
      • Subscriber Profile
      • Unique Identifier
      • Active Visitors
      • 'Quick Add' Referral
      • Update Referral Status
    • Campaign Templates
      • Contest
      • Website Referral Analysis
      • Net Promoter Score
    • Unique Identifier
      • Phone Number
      • Confirmation Email
        • Thank-You Page
    • Automations
      • A/B Test
    • Security
      • Manual Review & Confirmation
      • Secondary Verification Method
      • High Risk
      • Blacklist
      • ReCaptcha
    • Reward
      • Reward Status
      • Advanced Reward Options
      • Transactions
    • Analytics
      • Active Visitors
      • Subscribers
      • Sources
      • Shares
      • Devices
      • Unsubscribers
    • Misc
      • Memorable referral links
      • 1-Click Signup
      • Forward & Refer
      • Coupon Codes
      • Custom Attribution
  • Integrate
    • Embeddable Widgets
      • Custom Domain
    • Integrations
      • Active Campaign
      • Aweber
      • Blockchain
      • Facebook Pixel
      • Calendly
      • Discord
      • HubSpot
      • Intercom
      • KakaoTalk
      • Klaviyo
      • Mailchimp
      • Salesforce
      • SendLane
      • Slack
      • Stripe
      • Tango Card
      • Telegram
      • Tremendous
      • Twilio
      • Typeform
      • Webhooks
      • Zapier
      • Zoho
    • Platform-specific Instructions
      • Google Tag Manager
      • WordPress
      • Webflow
      • SquareSpace
      • ClickFunnels
      • Unbounce
      • Instapage
      • Shopify
      • Carrd
      • WIX
    • Javascript Web API
      • Getting Started
      • Configuration file
      • Callbacks
      • Add a subscriber
      • Add a Pending Referral
      • Track multi-step conversion events
      • Track Transaction
      • Identify a Subscriber
      • Identify a Referrer
      • Generate Dashboard Widget
      • Generate Sharing-Screen
    • ReactJS
    • REST API
      • Errors
      • Webhooks
      • Objects
      • Endpoint Reference
    • Mobile SDKs
      • iOS SDK
        • Getting Started
        • Public Methods
        • Public Classes
        • API Interaction Methods
      • Android SDK
        • Getting Started
        • Public Methods
        • Public Classes
        • Listeners & Interfaces
      • Flutter SDK
        • Getting Started
        • Public Methods
      • React Native
        • Getting Started
        • Public Methods
        • Mobile App Testing in Development Mode
      • Mobile App Testing in Development Mode
  • API Tutorials
Powered by GitBook
On this page

Was this helpful?

  1. Integrate
  2. Integrations

Calendly

PreviousFacebook PixelNextDiscord

Last updated 3 months ago

Was this helpful?

The ReferralHero / Calendly Integration is very powerful and allows you to track and reward subscribers based on booked sales calls or demos.

  1. Go to your Calendly account

  2. Go to My Calendly -> Event Types -> Edit Event

3. Go to Additional Options -> Confirmation Page and change the following options:

  • On Confirmation:

    Select “Redirect to an external site”

  • Redirect URL:

    Add the URL of a page that will act as a “Thank You Page” after the person submits the Calendry form (Note: you may have to create this page on your website so you can have a dedicated URL)

  • Pass event details to your redirect page:

    Check the box

4. Make sure you have added the ReferralHero Global Tracking script to the <head> tag of your website.

5. Add one of the following scripts to <head> tag specifically on the "Thank You Page" or page used for the Redirect URL above.

Use RH_MFxxxxxxxxxx.form.submit() to add both organic and track referrals to the referral campaign. Replace 'MFxxxxxxxxxx' with your specific campaign UUID.

<script>
window.onload = (event) => {
  let params = new URLSearchParams(document.location.search);
  var data = {
      email: params.get("invitee_email"),
      name: params.get("invitee_full_name")
  };
  if (RH_MFxxxxxxxxxx) {
    RH_MFxxxxxxxxxx.form.submit(data);
  }
}
</script>

If you have the ReferralHero "Terms and Conditions" feature enabled (Design > Opt-in Form) for your campaign. Use this script instead:

<script>
window.onload = (event) => {
  let params = new URLSearchParams(document.location.search);
  var data = {
      email: params.get("invitee_email"),
      name: params.get("invitee_full_name"),
      terms: true
  };
  if (RH_MFxxxxxxxxxx) {
    RH_MFxxxxxxxxxx.form.submit(data);
  }
}
</script>

Use RH.pendingReferral() to track only referrals with ‘Pending’ status to the multi-step conversion event campaign

<script>
window.onload = (event) => {
  let params = new URLSearchParams(document.location.search);
  var data = {
      email: params.get("invitee_email"),
      name: params.get("invitee_full_name")
  };
  if (RH) {
    RH.pendingReferral(data);
  }
}
</script>

Now every time a Calendly form is submitted, a subscriber (an organic or referral) will be added to ReferralHero.

Note: This will pass the Full Name and Email of the invitee to your ReferralHero campaign and create a subscriber. If you want to pass additional data to ReferralHero you will have to add additional variables, see .

Calendly documentation here