A 5-minute, one-time setup in Netlify. No code changes, and it automatically covers every page — including every blog article you publish in the future.
The idea in one line
Netlify can inject the Google Analytics tag into every page as it's served. You paste the tag once in the dashboard; it shows up on all current pages and all future ones with nothing else to maintain.
This is the Google Analytics tag for stqcap.com (property G-1HFD429BTQ). You'll paste it in Step 2.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1HFD429BTQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1HFD429BTQ');
</script>
Google Analytics, paste the tag from Step 1, and set position to Before </head>.Ctrl/Cmd + F.G-1HFD429BTQ. If you see it in the source, the tag is live. ✅If the tag does NOT show up in Step 3
One setting in the repo can switch off snippet injection. Open the file netlify.toml — it's in the root folder of the repo (the top level, alongside index.html). Find this block near the top:
[build]
publish = "."
[build.processing]
skip_processing = true ← delete this line (or set it to false)
[build.processing.html]
pretty_urls = false
Remove the skip_processing = true line (or change it to false), then commit and push. Netlify redeploys automatically — give it a minute, then re-run the Step 3 check. That's the only likely snag.
Why this is the clean way
Because the tag is injected at serve time, you never touch the HTML files. Publish a new insight article tomorrow and it's tracked automatically — no per-page editing, ever.