From 89e261f8e49ef137acf9585a01d2e472ea23b5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Mon, 13 Apr 2026 22:34:48 +0100 Subject: [PATCH] Fix Umami event name for long page titles Use a fixed event name (type:view) and pass the title as metadata instead of embedding it in the event name, which caused issues with long page titles. Co-Authored-By: Claude Opus 4.6 (1M context) --- layouts/partials/analytics/umami.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/analytics/umami.html b/layouts/partials/analytics/umami.html index 3160f9f1..4c987043 100644 --- a/layouts/partials/analytics/umami.html +++ b/layouts/partials/analytics/umami.html @@ -23,7 +23,7 @@ const type = document.head.querySelector('meta[property = "og:type"]').getAttribute("content"); let title = document.head.querySelector('meta[property = "og:title"]').getAttribute("content"); let url = document.head.querySelector('meta[property = "og:url"]').getAttribute("content"); - umami.track(type + ":" + title, { url: url }); + umami.track(type + ":view", { title: title, url: url }); }); {{ end }}