hitsteps / hitsteps-analytics
Real-time visitor analytics and heatmaps for your Craft CMS site.
Package info
Type:craft-plugin
pkg:composer/hitsteps/hitsteps-analytics
Requires
- php: ^8.2
- craftcms/cms: ^5.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Watch live visitors, page activity and heatmaps for your Craft CMS site. Hitsteps Analytics adds your Hitsteps tracking code to the public pages of your site, so there is no template to edit.
Requirements
- Craft CMS 5.0 or later
- PHP 8.2 or later
- A Hitsteps account. Create one for free, add your website and copy its tracking code.
Installation
In the control panel, open Plugin Store, search for "Hitsteps Analytics" and choose Install.
Setup
- Open Settings → Plugins → Hitsteps Analytics.
- Paste the tracking code from your Hitsteps dashboard. The whole code, the site code or an environment variable such as
$HITSTEPS_TRACKING_CODEall work. - Choose the sites that should be tracked and save.
- Open your site in a private window and watch your visit arrive in the Hitsteps dashboard.
Settings are stored in the project config. To keep them per environment, create config/hitsteps-analytics.php:
<?php return [ 'enabled' => true, 'trackingCode' => '$HITSTEPS_TRACKING_CODE', 'sites' => '*', ];
What it adds
One script tag, placed before the closing </head> of front-end HTML pages:
<script src="https://edgecdnplus.com/code?code=YOUR_CODE" async></script>
The control panel, console commands, action requests, previews, non-HTML templates (JSON, XML, RSS) and pages that already contain a Hitsteps tracking code are left unchanged. Remove any Hitsteps code you pasted into your templates earlier, so each page keeps one copy.
Your consent popup, masking and privacy choices stay in your Hitsteps site settings. Mention Hitsteps in your privacy policy.
Updating and removing
Updates appear in Utilities → Updates, like every other Craft plugin.
To remove it, open Settings → Plugins, uninstall Hitsteps Analytics (or run php craft plugin/uninstall hitsteps-analytics), then choose Remove. Uninstalling removes its settings and the tracking code from every page.