5 minutes

Install Web-Tracking.eu on Umbraco

Add a small Razor partial to your master template. The script loads on every page rendered through Umbraco.

1

Download the partial

Use our ready-made partial that respects environment configuration via appsettings.json.

2

Add the partial to your project

Place the file in Views/Partials/_WebTracking.cshtml in your Umbraco project. If the Partials folder doesn't exist, create it.

Screenshot: Visual Studio Solution Explorer with Views/Partials
3

Render in your master template

Open your master template (commonly Views/Master.cshtml or your top-level layout) and add this just before the closing </head> tag:

@{Html.RenderPartial("_WebTracking");}
</head>
4

Configure the site ID

Open appsettings.json and add:

{
  "WebTracking": {
    "SiteId": "YOUR_SITE_ID"
  }
}

Rebuild and deploy. The tracking script is now injected into every Umbraco page.

Note: If you hit Umbraco's known DistributedReadLockTimeoutException on Azure SQL when using Razor views, render the partial through a custom MVC controller using ContentResult instead.

Verify it's working

  1. Open your site in a private/incognito window.
  2. Visit any page on the site.
  3. Open the Web-Tracking.eu dashboard for this site.
  4. 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.
← Back to install hub