Product Hunt logo dark
  • Launches
    Coming soon
    Upcoming launches to watch
    Launch archive
    Most-loved launches by the community
    Launch Guide
    Checklists and pro tips for launching
  • Products
  • News
    Newsletter
    The best of Product Hunt, every day
    Stories
    Tech news, interviews, and tips from makers
    Changelog
    New Product Hunt features and releases
  • Forums
    Forums
    Ask questions, find support, and connect
    Streaks
    The most active community members
    Events
    Meet others online and in-person
  • Advertise
Subscribe
Sign in
Subscribe
Sign in
Minimal Google Analytics Snippet

Minimal Google Analytics Snippet

A simple snippet for tracking page views on your website.

2 followers

A simple snippet for tracking page views on your website.

2 followers

Visit website
A simple snippet for tracking page views on your website without having to add external libraries. Also works for single page applications made with the likes of react and vue.js.
  • Overview
  • Launches1
  • Reviews
  • Alternatives
  • Team
  • More
Company Info
minimalanalytics.com
Minimal Google Analytics Snippet Info
Launched in 2018View 1 launch
Forum
p/minimal-google-analytics-snippet
  • Blog
  • •
  • Newsletter
  • •
  • Questions
  • •
  • Forums
  • •
  • Product Categories
  • •
  • Apps
  • •
  • About
  • •
  • FAQ
  • •
  • Terms
  • •
  • Privacy and Cookies
  • •
  • X.com
  • •
  • Facebook
  • •
  • Instagram
  • •
  • LinkedIn
  • •
  • YouTube
  • •
  • Advertise
© 2025 Product Hunt
SocialX

Similar Products

Microsoft Clarity
Microsoft Clarity
Website analytics powered by machine learning 📊
4.5(12 reviews)
Screenshots and screen recording appsWebsite analytics
Hyperping
Hyperping
Beautifully Simple and Reliable Uptime Monitoring
3.0(2 reviews)
Email marketingWebsite analytics
Simple Analytics
Simple, clean, and privacy-friendly analytics 📊
5.0(6 reviews)
Safety and Privacy platformsWebsite analytics
Startup Bell
Startup Bell
Chrome extension rings the bell when you have a new visitor
Work & ProductivityChrome Extensions
66Analytics
66Analytics
Self-hosted analytics with session replays, heatmaps & more.
4.3(4 reviews)
Data visualization toolsBusiness intelligence software
View more
Minimal Google Analytics Snippet gallery image
Minimal Google Analytics Snippet gallery image
Minimal Google Analytics Snippet gallery image
Launch tags:
Analytics
Launch Team
David Künnen

What do you think? …

Adriaan
Adriaan
Simple Analytics AI

Simple Analytics AI

This is cool, so you have still the power of Google but more control of what they receive from your users? I think this will also disable tracking because it's not on the google-analytics.com domain, is that true?
Report
6yr ago
David Künnen
David Künnen
Stock Events

Stock Events

Maker
@harianus Thanks for the feedback! I think it does disable tracking, since the response header doesn't seem to have any cookies attached. As suggested in this HN thread (https://news.ycombinator.com/ite...) I will also add an option to anonymize the IP address.
Report
6yr ago
David Miranda
David Miranda
Polite Pop

Polite Pop

This is such a cool idea and very well implemented! Well done!! 😻 A couple of suggestions: • Annotated Source Code! 📝 Some JS libraries, like underscore.js, have a version of their source code that's un-minified and annotated with explanations for every line. Could you do that too? I'd love to see what each piece does. It would help bring me piece of mind and allow me to modify it in the future. • More options! 🔘 You're using the official Analytics API to implement this, but it's not obvious how I could work with this API to add functionality on top of your snippet. Perhaps you could add some checkboxes that add functionality to the code — or some snippets after the code as suggestions. • Performance! 🚀 Would you recommend loading this script asynchronously? Why or why not? A notice about this would help me figure out the best practices and whether or not I should be adding this to me bundle or including it on the page as is.
Report
6yr ago
David Künnen
David Künnen
Stock Events

Stock Events

Maker
@panphora Thanks for your feedback 😺 Added options now. Will also open source the snippet on GitHub.
Report
6yr ago
David Künnen
David Künnen
Stock Events

Stock Events

Maker
Hey Hunters! 👋 I created this yesterday afternoon, since I got some time. 🤔 Problem The problem is, that I have to add the Google Tag Manager and Analytics libraries to my websites, even if I just want to track basic page views. The GTM and Analytics libraries are not only huge (72kB together), but also add two additional requests to my websites. Sometimes it would even slow my website down by over 1 second (mainly caused by GTM). 🛠 Solution As a solution I created this simple snippet I can just add to the HTML of my websites and it's working instantly. It even works for single page applications that have no real page reload, for example applications made with React or Vue.js. It sends page views directly to the Google Analytics API, without the need to add all the extra clutter. Maybe someone else has the same problem. Please let me know what you think! 😻
Report
6yr ago
David Künnen
David Künnen
Stock Events

Stock Events

Maker
Thanks for all your upvotes! Already got many feature requests for adding an event function.
Report
6yr ago
Appwrite
Appwrite — The open-source Vercel alternative
The open-source Vercel alternative
Promoted

Do you use Minimal Google Analytics Snippet?

Reviews
Helpful

You might also like

Microsoft Clarity
Microsoft Clarity
Website analytics powered by machine learning 📊
Hyperping
Hyperping
Beautifully Simple and Reliable Uptime Monitoring
Simple Analytics
Simple, clean, and privacy-friendly analytics 📊
Startup Bell
Startup Bell
Chrome extension rings the bell when you have a new visitor
66Analytics
66Analytics
Self-hosted analytics with session replays, heatmaps & more.
Flat GA
Flat GA
All-in-one website analytics and monitoring solution
View more
Review Minimal Google Analytics Snippet?Be the first to review Minimal Google Analytics Snippet