> For the complete documentation index, see [llms.txt](https://berylsystems.gitbook.io/referral-hero-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://berylsystems.gitbook.io/referral-hero-documentation/integrations/javascript-web-api/getting-started.md).

# 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="/files/uFamk9yz3oG4UNiCnCiL" 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="/files/MCtHoaxlny3yfS1odtnV" 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.
