# Getting Started

The first and most crucial step is to install the **ReferralHero Global Tracking Code** on your website. This step is mandatory to ensure that your referral campaign can track user activities across your site and function correctly.<br>

**Follow these steps to add the Tracking Code to your website:**

**Step 1 : Access Your Campaign Dashboard:**

* Log in to your ReferralHero account.
* Navigate to your campaign dashboard and select **Launch**.
* Copy your unique Global Tracking Code from this section.

<div align="center"><figure><img src="https://1427773792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhQxsg0xCpG1doJ626L8X%2Fuploads%2FccKxpxuccW16Q8Dii4u6%2FScreenshot%202024-08-26%20at%204.15.39%E2%80%AFPM.png?alt=media&#x26;token=0367c17b-9cf0-4d51-aa45-ce5fb5a5ce3e" alt=""><figcaption></figcaption></figure></div>

**Step 2 : Add the Tracking Code to Your Website:**

* Insert the **Global Tracking Code** into the `<head>` section of your website's HTML. This ensures the code is loaded on every page of your site, enabling comprehensive tracking of user interactions.
* **Verify the Installation**: Ensure that the code is correctly placed by checking your site's source code or using browser developer tools.

<figure><img src="https://1427773792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhQxsg0xCpG1doJ626L8X%2Fuploads%2FZbkevfXkkklgjf6hi3I7%2FScreenshot%202024-08-26%20at%204.56.40%E2%80%AFPM.png?alt=media&#x26;token=2488fba1-8c23-489c-981e-b8fd1e82675f" alt=""><figcaption><p>Go to your website where you have added the Global Tracking code &#x26; open console.</p></figcaption></figure>

**Step 3 : Enable the Global RH Object**:

* Once the Global Tracking Code is installed, your web pages will have access to the global `window.RH` object. This object is essential for interacting with ReferralHero’s features and tracking user actions.

By completing these steps, you ensure that your website is fully integrated with ReferralHero.
