Perplex offers configuration parameters to include site-wide scripts for tracking services. Currently Fathom and Google Analytics (GA4) are directly supported.

As a website creator, you generally like to get an impression of your audience and want to know what kind of and how much attention your pages get. And when you start some kind of campaign, you often want to measure its success.

Google Analytics 4

Google offers its own widely used analytics service. Many of its capabilities are free of charge.

When you place your Google Measurement ID in the main configuration file like googleAnalytics: G-MEASUREMENT_ID the internal template provided by Hugo gets included in the <head> of all your pages.

Fathom Analytics

Fathom Analytics* is privacy-focused and wants to get paid because it doesn’t monetize data from visitors. It doesn’t collect any individual data at all and is a merely statistical service for website operators. With Fathom your vistors don’t need to know about the service and don’t need to decide what kind of data they would like to share. No need for a pop-up window!

This advantage comes at a (reasonable) price after a short tryout period. Fathom doesn’t offer as much information and as many tools as Google. But if you don’t need all this anyway, you will probably like their clear and simple backend.

You can place the Fathom-ID for your site like fathomSiteID: ABCDEFG in the parameter section of your configuration.