Website
Web Setup
Install and configure Hardal for your web sites
Overview
The Hardal Web Script enables you to track user behavior and collect cookieless analytics and first-party data from your web sites.
Installation
1
Get your Hardal Script
- Log into your Hardal account
- Navigate to settings
- Copy your Hardal Script from “Setup” tab
2
Add the Script
Add your Hardal Script to your HTML file, preferably in the <head>
section. The script should look like the following:
Replace <your-hardal-signal-id>
with your actual Signal ID.
3
Verify Installation
To verify your installation:
- Open your browser’s developer tools (F12 or right-click → Inspect)
- Go to the Network tab
- Refresh your page
- Look for requests to your Hardal endpoint
- Verify that page view events are being sent successfully
- Check your Hardal Dashboard to see real-time events are reflected accordingly
Custom Event Tracking
Using hardal.track()
You can use the hardal.track()
method to send custom events: