Minimal Google Analytics Snippet

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.

Before

Google Tag Manager + Analytics = 73kB

After

Snippet = 1.5kB