Perplex offers configuration parameters to easily include scripts for a tracking service. Currently Fathom and Google Analytics (GA4) are directly supported.

As a website creator, you like to get an impression of your audience and want to know how much attention your pages get. And when you start some kind of campaign, you may 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 needs to be 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 you don’t need to force your visitors to decide about data they would like to share.

In short: With this service, there is no need for another annoying pop-up!

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.