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 WordPress Script Management Plugin.
Step 1: Check to see if you already have a header/footer script management plugin installed on your WordPress website. If not, there are several free WordPress plugins that you can use to add scripts to the header or footer of your website. We recommend WPCode or OH Add Script to Individual Pages Header Footer.
Step 2: Install the selected header/footer script plugin on your WordPress website.
While it is very rare to have any issues with the WordPress script management plugin installation, any script management plugins you install are not managed by ReferralHero. Therefore, if you encounter any challenges during the installation of the WordPress script management plugin or experience any incompatibility issues you need to reach out to the plugin author for assistance.
Step 3: Go to your ReferralHero campaign dashboard > Installation instructions and copy your ReferralHero Global Tracking Code
Step 4: 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 6: 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.