From 1b735c9c30cf32aca206cde7eb8949c47561dbb6 Mon Sep 17 00:00:00 2001 From: David Montero Date: Tue, 18 Aug 2026 16:04:48 +0200 Subject: [PATCH] seo/analytics: real GA attribution, tight robots.txt, no build-date lastmod, GA only on velxio.dev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - trackClickCTA sent the originating page as the event parameter `source`, a reserved traffic-source name in GA4: every landing CTA click rewrote the session's acquisition to landing / arduino-simulator / rpi-simulator with medium (not set), which put 16% of sessions in the Unassigned channel. Renamed to cta_source (register it as a custom dimension in GA4 if the click_cta report should keep breaking down by page). - robots.txt is one group with no blank lines (some parsers end a group at a blank line, orphaning the Disallow rules); /login, /register and /admin are no longer disallowed — they carry noindex, and a page must be crawlable for that tag to take effect. /project/ and /api/ stay out. - The static sitemap no longer stamps every URL with the build date as ; an all-identical, ever-changing lastmod is discarded as unreliable, so omitting it is the honest option. - The GA4 tag loads only on velxio.dev / www.velxio.dev / tauri.localhost: self-hosted copies of the app (there are >180 hostnames reporting into the property) no longer pollute velxio.dev's analytics. --- frontend/index.html | 25 +++- frontend/public/robots.txt | 18 ++- frontend/public/sitemap.xml | 193 -------------------------- frontend/scripts/generate-sitemap.mjs | 9 +- frontend/src/utils/analytics.ts | 12 +- 5 files changed, 42 insertions(+), 215 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 9b24b540..7f936b09 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -20,15 +20,26 @@ -