Skip to content

Google Analytics

September 29, 2023
May 20, 2023

Analytics Mania - Google Tag Manager and Google Analytics

Obsoleting Universal Analytics

remove post for Google Analytics (Universal Analytics)
use Tag Manager and Google Analytics 4

Prepare for the future with Google Analytics 4
Universal Analytics is going away - Analytics Help

Google Tag Manager (GTM)

Google Tag Manager it helps deployment of analytics as "tags"
About Google Tag Manager | Google for Developers

Google Tag Manager vs Google Analytics explained (2023)
Google Tag Manager vs Google Analytics - Big Picture - Medium
Google Tag Manager vs. Google Analytics - Which one to use and when - YouTube

How to track website analytics for your freelance business website using Google Tag Manager in 2021 | Tiiny Host Blog
How to Set Up Google Analytics in 5 Simple Steps

It's also easy to add other integrations as different "tags"

Mixpanel: Event Analytics for Mobile, Web & More

Google Analytics 4

It's recommended to create and manage Measurements in GA and use GTM for deployment.

Analytics
Get started with Analytics - Analytics Help
Google Analytics 4 : Google

Enhanced Measurement in Google Analytics 4 (GA4) - Analytics Mania

Universal Analytics

OBSOLETE

Get started with Analytics - Analytics Help
How to Set Up Google Analytics in 5 Simple Steps
Google Analytics for Beginners

react-ga/react-ga: React Google Analytics Module
lukeed/ganalytics: A tiny (312B) client-side module for tracking with Google Analytics

<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID -->
<script>
  window.ga = function () {
    ga.q.push(arguments);
  };
  ga.q = [];
  ga.l = +new Date();
  ga("create", "UA-XXXXX-Y", "auto");
  ga("set", "anonymizeIp", true);
  ga("set", "transport", "beacon");
  ga("send", "pageview");
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>

Alternatives

Plausible Analytics | Simple, privacy-friendly Google Analytics alternative

GoatCounter – open source web analytics

Scarf I Home
Open Source Analytics With Scarf also for software/lib (npm hook)