Skip to content

Web

Contao bundle

Add trackd.one to Contao 5.3, 5.7 and 6.0 — configured on the website root, no template changes, with CSP support.

The bundle trackd.one for Contao adds the tracking script to every page of a Contao website. You configure it on the website root — every website root can measure into its own trackd.one website. No template or layout changes needed. Compatible with Contao 5.3 LTS, 5.7 LTS and 6.0.

Installation

The bundle is on Packagist.

Contao Manager:

  1. Under Packages search for trackd and add mignuti/contao-trackd-analytics.
  2. Apply changes.
  3. Update the database (the Contao Manager offers it, otherwise vendor/bin/contao-console contao:migrate) — the bundle adds its fields to the website root.

Composer:

composer require mignuti/contao-trackd-analytics
vendor/bin/contao-console contao:migrate

Server without internet access: download trackd-contao.zip and upload it in the Contao Manager under Packages → Upload packages, then update the database.

Set up

  1. Site structure → edit the website root → section trackd.one – analytics.
  2. Enter your Website ID. You find it in the dashboard under Settings → Install → Contao. 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 bundle adds nothing; an invalid ID is rejected when saving. The website’s domain must match the website root.
Measure Web Vitals off loads the optional Web Vitals module
Heatmaps off records click positions for heatmaps
Do not count back end users on editors logged in to the back end (e.g. in the preview) are not counted
Do not count logged-in members off members logged in to the front end are not counted

The script is added with defer to the <head> of every page. If https://trackd.one/t.js is already in the layout by hand, the bundle does not add it a second time. Contao’s page cache is fine too: logged-in editors and members never get the cached page with the script.

Content Security Policy

If you enabled a Content Security Policy on the website root (Contao 5.3+), the bundle adds https://trackd.one to script-src and connect-src automatically — otherwise the browser would silently block the script and the measurement. If you set the CSP elsewhere (web server, your own bundle), add https://trackd.one to both directives there.

Revenue and events

Send custom events with trackd.track() (see Custom events) and revenue from a shop extension 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 the bundle in the Contao Manager (or composer remove mignuti/contao-trackd-analytics) and update the database; Contao then offers to drop the trackd… fields of tl_page.

Ready in minutes

Start the 7-day free trial (no credit card), add your website or app, copy the snippet.

Start free trial