Just use plausible
e.g. https://plausible.io via https://neverworkintheory.org but £9 per month
Link tracking
https://plausible.io/docs/outbound-link-click-tracking
Google analytics
Google analytics needs tweaking, see support.google.com/analytics/answer/1136920
Using google analytics and wanting to track outbound clicks (what are users clicking on)
In most analytics packages this is pretty straightforward and usually turned on by default, but in Google Analytics it looks like you have to add it
gtag.js vs analytics.js
Using gtag.js
, rather than the olderanalytics.js
https://developers.google.com/analytics/devguides/collection/gtagjs
Not clear where the best place to configure outbound links is
Some documentation suggests including extra functions In gtag.js
e.g. https://support.google.com/analytics/answer/7478520 then add onClick
attributes to all of my links.
It seems like a clumsy way of tracking links, what are the alternatives (if there any)?
For example configuring additional Google Analytics properties
gtag('config', 'GA_MEASUREMENT_ID_2_FOR_CLICKTHROUGHS');
or adding an Event quote "Downloads, link clicks, form submissions, and video plays are all examples of actions you might want to analyze as Events." https://support.google.com/analytics/answer/1033068
How FSE works
We use Google Analytics (GA) on the various UoM/FSE sites we manage but we deploy via Google Tag Manager (GTM). At present we’re using both GA’s Universal Analytics (UA) and GA4 in parallel but Google intend to withdraw UA next July so it’s best to go with GA4 for any new implementation.
As for recording interactions such as clicks on outbound links, GTM allows us to set up various tags and triggers which ‘fire’ and record events in Google Analytics whenever a visitor interacts with the page, such as scrolling, playing a video, clicking a link, etc. Its JavaScript based but all the configuration is done within the GTM workspace so you don’t need to hard code ‘onclick’ events into pages. Most of the configuration can be done via predefined tags / triggers using ‘wizard’ type menus and interfaces but there’s facilities for writing your own tags and triggers if you prefer.
We also use Google Data Studio to create dashboards to summarise visitor activity. They’re infinitely customisable and dispense with the need to dig around in GA looking for evidence of a particular activity.
How gtag.js for UA maps to GA4
Why does it have to be so complicated?