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.

Emircan Uye
Customer Engineer

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

Step 1: Get Your Hardal Script

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

Step 2: Create a New Tag in GTM

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

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

Step 3: Configure Tag Settings

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

Step 4: Set the Trigger

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

Step 5: Save and Publish

  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.

Verify Your Installation

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 and user identification.

For a more detailed walkthrough, check out our step-by-step guide. How To Set Up Hardal Via Google Tag Manager

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

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