5 minutes
Install Web-Tracking.eu on Drupal
The Asset Injector contributed module is the cleanest way to add a script to every Drupal page without editing theme code.
1
Install Asset Injector
From your Drupal root run:
composer require drupal/asset_injector
drush en asset_injector Or install via Extend > Install new module in the admin UI.
2
Add a JS injector
Go to Configuration > Development > Asset Injector > JS Injector > Add JS Injector.
Screenshot: Drupal Asset Injector form
3
Paste the script
Configure as follows:
- Label: Web-Tracking.eu
- Code:
(function() {
var s = document.createElement('script');
s.src = 'https://web-tracking.eu/t.js?site=YOUR_SITE_ID';
s.defer = true;
document.head.appendChild(s);
})(); - Preprocess JS: Off
- Header: On
Save. Clear caches via Configuration > Performance.
Verify it's working
- Open your site in a private/incognito window.
- Visit any page on the site.
- Open the Web-Tracking.eu dashboard for this site.
- The Realtime view should show your visit within 5–10 seconds.
Having trouble?
- No data showing: Confirm the script is in the page source (View Source > search
web-tracking.eu/t.js). - Wrong site ID: Double-check the ID matches the one in your dashboard. IDs are case-sensitive.
- Ad blocker: Web-Tracking.eu is privacy-friendly, but some aggressive blockers still hide it. Test in a fresh browser.
- Caching: Many platforms cache the page HTML. Purge your cache after install.
- Still stuck? Email hello@web-tracking.eu with your site URL.