Web
Drupal module
Add trackd.one to Drupal 10 and 11 — no theme changes, role exclusion, German UI included and support for the CSP module.
The module trackd.one Analytics adds the tracking script to every page of your Drupal site — no theme changes. Compatible with Drupal 10.3+ and 11.
Installation
- Download the module: trackd-drupal.zip.
- Unpack it to
web/modules/custom/(ormodules/contrib/) — this creates the foldertrackd_analytics. - Enable “trackd.one Analytics” under Extend, or with Drush:
drush pm:install trackd_analytics.
A German interface ships with the module and is imported automatically when the Locale module is enabled.
Set up
- Open Configuration → System → trackd.one Analytics (
/admin/config/system/trackd-analytics). - Enter your Website ID. You find it in the dashboard under Settings → Install → Drupal. Save.
Done: open your site in a private window. The visit shows up within seconds in the dashboard under Real time and in the connection check under Settings → Install.
Settings
| Field | Default | Meaning |
|---|---|---|
| Website ID | — | ID of your property (required). Without a valid ID the module adds nothing; an invalid ID is rejected when saving. |
| Measure Web Vitals | off | loads the optional Web Vitals module |
| Heatmaps | off | records click positions for heatmaps |
| Do not count these roles | Administrator | logged-in users with one of these roles are not counted |
| Server URL (Advanced) | https://trackd.one | only for your own trackd server |
The script is added with defer to the <head>, never on admin pages. The role exclusion works reliably with Drupal’s page caches. Who may change the settings is controlled by the permission “Administer trackd.one Analytics”.
Content Security Policy
If you use the Content-Security-Policy module, trackd.one Analytics adds https://trackd.one to script-src and connect-src automatically. If you set the CSP elsewhere (web server, Security Kit), add https://trackd.one to both directives there.
Revenue and events
Send custom events with trackd.track() (see Custom events) and revenue, e.g. from Drupal Commerce, with trackd.revenue(amount, 'EUR', orderId) (see Revenue tracking).
Privacy
trackd.one sets no cookies, stores nothing in the browser and uses no fingerprinting; visitors with Do Not Track or Global Privacy Control are not tracked. Mention trackd.one in your site’s privacy policy. Whether you need consent is your assessment as the operator; see Privacy & GDPR. The data processing agreement is at DPA.
Uninstall
Remove “trackd.one Analytics” under Extend → Uninstall (or drush pm:uninstall trackd_analytics); Drupal deletes the settings.
Ready in minutes
Start the 7-day free trial (no credit card), add your website or app, copy the snippet.