To install the ReferralHero Tracking Code onto your Wordpress theme, one option would be to place it in the
header.phpfile. However, editing the Wordpress theme this way changes the code on your website's local copy of the theme.
This means that if the theme is updated or re-downloaded later, you would lose changes to the header and the ReferralHero Tracking Code would no longer be installed. Instead, we suggest using a Script Installation Plugin.
Step 1: There are several WO plugins that you can use to add scripts to the header of the footer of your website but we recommend OH Add Script to Individual Pages Header Footer. Go to app.referralhero.com to copy the ReferralHero Tracking Code from your campaign dashboard.
Step 2: Go to your campaign dashboard > Installation instructions and copy your Tracking Code
Step 3: Paste the Tracking Code to the header of your site using the plugin you downloaded. If you are using the OH Add Script plugin, you will paste the script in the box shown below.
Step 5: Add the ReferralHero embeddable widgets on your page by pasting the special shortcode
[maitre-form]exactly where you want the form to appear in your page.