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.

Emircan Uye
Customer Engineer

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.

Step 1: Get Your Tracking Script

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

Click Settings in the left menu, then select Setup.

Step 2: Copy the Tracking Script

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

Click to copy the entire script.

Step 3: Add Script to Your Website

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

Step 4: Verify Installation

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.

Step 5: Check Your Dashboard

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

Next Steps

Now that basic tracking is set up, consider:

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

Ready to switch first-party and server-side measurement?

Join hundreds of companies using Hardal for better and faster data quality.