> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# How to Set Up Hardal Cookieless Analytics

Quick start guide to setting up Hardal cookieless analytics on your website by adding the tracking script to your HTML.

Source: https://usehardal.com/how-to-set-up-hardal
Published: 2025-12-17
Updated: 2025-12-17
Author: Emircan Uye

---

Setting up Hardal's cookieless analytics is straightforward and takes just a few minutes. This guide shows you how to add the tracking script to your website.

Navigate to your Hardal dashboard and select the signal you want to set up.

Click **Settings** in the left menu, then select **Setup**.

On the Setup page, you'll see your signal's tracking script. This is the fundamental script that enables cookieless analytics on your website.

![Screenshot: Setup page showing the Hardal tracking script code block](https://imge.usehardal.com/cdn/website/blog-post/how-to-set-up-hardal/w55snyoyfvgy1xuplwmp.jpg)

Click to copy the entire script.

Add the copied script to the `<head>` section of your website's HTML code.

### For Standard HTML Sites:

Open your website's HTML file and paste the script inside the `<head>` tags.

### For Content Management Systems (CMS):

Most CMS platforms have a "Header Scripts" or "Custom Code" section where you can paste the script. Common locations:

- **WordPress:** Appearance > Theme Editor > header.php, or use a plugin like "Insert Headers and Footers"
- **Shopify:** Online Store > Themes > Edit Code > theme.liquid
- **Wix:** Settings > Custom Code > Add Code to Head
- **Squarespace:** Settings > Advanced > Code Injection > Header

After adding the script to your website:

1. Save and publish your changes
2. Visit your website
3. Open your browser's Developer Tools (press F12)
4. Go to the Network tab
5. Refresh the page
6. Look for requests to `hardal.js`

If you see successful requests to Hardal, your installation is complete.

Return to your Hardal dashboard and navigate to **Analytics** > **Events** or **Overview**.

Within a few minutes, you should see data appearing from your website visitors.

![Screenshot: Hardal dashboard showing first events appearing](https://imge.usehardal.com/cdn/website/blog-post/how-to-set-up-hardal/s2xkexu641fsevhgwlrm.jpg)

Now that basic tracking is set up, consider:

- [Setting up custom events](https://usehardal.com/hardal-custom-events-hardcoded) to track specific user actions
- [Configuring a first-party domain](https://usehardal.com/hardal-first-party-domain-setup) for improved data accuracy
- [Implementing user identification](https://usehardal.com/hardal-distinct-function-setup) for cross-device tracking
- [Setting up Google Tag Manager](https://usehardal.com/hardal-google-tag-manager-setup) for easier tag management

Your cookieless analytics is now active and tracking visitors without using cookies, ensuring privacy compliance and accurate data collection.

For a more detailed walkthrough, check out our step-by-step guide. [How To Set Up Hardal](https://youtu.be/OwJhc0zOGas)
