STQ Capital · Website

Turning on Google Analytics for stqcap.com

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.

Step 1 — Copy the tag

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>

Step 2 — Paste it into Netlify

  1. Log in at app.netlify.com and open the stqcap.com site.
  2. Go to Project configuration → Build & deploy → Post processing.
  3. Find the Snippet injection section and click Add snippet.
  4. Name it Google Analytics, paste the tag from Step 1, and set position to Before </head>.
  5. Click Save. It takes effect immediately — no redeploy needed.

Step 3 — Confirm it's working

  1. Open https://stqcap.com, right-click the page, choose View Page Source, and press Ctrl/Cmd + F.
  2. Search for G-1HFD429BTQ. If you see it in the source, the tag is live. ✅
  3. For a live check: in Google Analytics, open Reports → Realtime, then load stqcap.com in another tab — you should appear as 1 active user within a few seconds.

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.