tfmurad

Astro v6 with ViewTransition GTM integration. Lightweight Google Tag Manager, zero-config.

10
0
100% credibility
Found Apr 27, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A lightweight tool that automatically adds Google Tag Manager visitor tracking to websites built with Astro.

How It Works

1
🌐 Build your website

You create a beautiful website using your favorite site builder and want to track how visitors use it.

2
🔍 Discover easy tracking

You find a simple helper that adds visitor tracking from Google without messing with code.

3
🔗 Connect tracking

You share your unique tracking number from Google with the helper, and it sets everything up automatically.

4
Test it out

You preview your site to make sure tracking works, turning it on if you want during tests.

5
🚀 Launch your site

You publish your website, and the tracking starts working on every page right away.

6
📈 See visitor data flow

As people browse, even with smooth page transitions, you get real-time insights into their journeys.

🎉 Tracking magic complete

Your website now effortlessly collects visitor data, helping you understand and improve it.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is astro-gtm-lite?

Astro-gtm-lite is a lightweight TypeScript integration that adds Google Tag Manager (GTM) to Astro sites with zero config—just drop your GTM ID into astro.config.mjs and it auto-injects the official script and noscript tags across all pages. It solves the hassle of manually wiring analytics snippets into layouts, especially for Astro v6 projects using View Transitions, where it pushes virtual pageview events on client-side navs for seamless tracking. Deploy to GitHub Pages, Cloudflare, or anywhere Astro runs without touching Markdown or 404 handling.

Why is it gaining traction?

Unlike heavier GTM plugins, this lite version skips components or build bloat, hooking directly into Astro's pipeline for instant setup—no GitHub Actions tweaks or template forks needed. Developers dig the View Transitions support, firing dataLayer events post-swap for accurate GA4 paths and titles, plus options like devMode toggles and custom domains. Its 10 GitHub stars reflect early buzz among Astro template users chasing minimal tag manager integration.

Who should use this?

Astro frontend devs building static sites with GTM analytics, especially those on GitHub Pages facing 404 issues or Cloudflare deploys. Ideal for teams using View Transitions who need virtual pageview tracking without layout edits or GitHub issues debugging scripts. Skip if you run complex SPAs needing full GTM customization.

Verdict

Grab it for quick GTM on new Astro projects—docs are solid, validation is strict, and it's MIT-licensed—but at 1.0% credibility and 10 stars, treat as experimental; watch GitHub issues for v6 edge cases before production. Solid starter for lightweight needs.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.