How to install ReferralHero on your website (manual installation)

  • Step 1
    Go to app.referralhero.com to copy the Tracking Code from your campaign dashboard.
  • Step 2
    Paste the Tracking Code into the <head> section of your website. We recommend adding it to your website template so that it automatically goes into each page of your site. ReferralHero works most accurately if the ReferralHero Tracking Code is in the Head tag (<head>) of every page you want to track on your site. If Google Tag Manager is your thing, you can go ahead and use it.
  • Step 3
    Add the ReferralHero form on your page by pasting <div id="maitre-widget"></div> exactly where you want the form to appear in your page. It must be within the <body> of your page.

Full example

<!DOCTYPE html>
  <html lang="en">
  <head>

    <script>!function(m,a,i,t,r,e){if(m.RH)return;r=m.RH={},r.uuid=t,r.loaded=0,r.base_url=i,r.queue=[],m.rht=function(){r.queue.push(arguments)};e=a.getElementsByTagName('script')[0],c=a.createElement('script');c.async=!0,c.src=i+'/widget/'+t+'.js',e.parentNode.insertBefore(c,e)}(window,document,'https://app.referralhero.com','YOUR_CAMPAIGN_UUID');</script>

  </head>
  <body>

    <div id="maitre-widget"></div>

  </body>
</html>

Still need help? Contact Us Contact Us