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

# How to Set Up Hardal via Google Tag Manager

Step-by-step guide to implementing Hardal cookieless analytics on your website using Google Tag Manager.

Source: https://usehardal.com/hardal-google-tag-manager-setup
Published: 2025-12-15
Updated: 2025-12-15
Author: Emircan Uye

---

This guide walks you through setting up Hardal's cookieless analytics on your website using Google Tag Manager, ensuring proper tracking without cookies.

Navigate to your Hardal dashboard and select your signal. Click **Settings** > **Setup** in the left menu.

Copy the Hardal tracking script displayed on the Setup page. This is the fundamental script you'll use for cookieless tracking.

![Screenshot: Hardal script code block on Setup page](https://imge.usehardal.com/cdn/website/blog-post/hardal-google-tag-manager-setup/tv0yzgltrkdsc4ogalls.jpg)

Go to your Google Tag Manager container and navigate to **Tags**. Click **New** to create a new tag.

![Screenshot: Google Tag Manager Tags page with New button highlighted](https://imge.usehardal.com/cdn/website/blog-post/hardal-google-tag-manager-setup/cpj22j5vfwnmnsqkkje1.jpg)

### Configure the Tag

1. Click on **Tag Configuration**
2. Select **Custom HTML** from the tag types
3. Paste your Hardal script into the HTML field

![Screenshot: Custom HTML tag configuration with Hardal script pasted](https://imge.usehardal.com/cdn/website/blog-post/hardal-google-tag-manager-setup/olo08zr5x9uwovpbsaif.jpg)

### Basic Settings

Name your tag descriptively, such as "Hardal init" or "Hardal Tracking Script".

### Enable document.write Support

Enable **Support document.write** to ensure the script tracks events properly. This setting allows the script to function correctly across all scenarios.

### Advanced Settings

Click on **Advanced Settings** and configure:

**Tag firing options:** Select "Once per page" to ensure the script loads only once per page view.

**Consent Settings:** Choose "No additional consent required" since Hardal uses cookieless tracking. However, always ensure this aligns with your company's privacy policies and legal requirements.

![Screenshot: Advanced Settings showing Once per page and Consent settings](https://imge.usehardal.com/cdn/website/blog-post/hardal-google-tag-manager-setup/uz7tzx4ns5hf42eectwx.jpg)

Select a trigger for when the tag should fire. For initial setup, choose **All Pages** to track all page views.

![Screenshot: Trigger selection showing All Pages option](https://imge.usehardal.com/cdn/website/blog-post/hardal-google-tag-manager-setup/ydpobb8dghgywt3xs4uq.jpg)

1. Click **Save** to save your tag
2. Click **Submit** to publish your changes to your live website
3. Add a version name and description for your records

Your Hardal cookieless analytics is now active and tracking visitors on your website through Google Tag Manager.

To confirm everything is working:
1. Visit your website
2. Open browser Developer Tools (F12)
3. Check the Network tab for Hardal requests
4. Visit your Hardal dashboard to see incoming events

For more advanced configurations, see our guides on [custom events](https://usehardal.com/hardal-custom-events-google-tag-manager) and [user identification](https://usehardal.com/hardal-distinct-function-setup).

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