Want simple, privacy-focused analytics for your Ghost publication? Ghost integrates with Fathom Analytics using a straightforward code injection.
Fathom Analytics empowers people and businesses to take control of their data and privacy with simple, GDPR compliant website analytics for bloggers and businesses who care about privacy.
Create a Fathom site
When you create a new Fathom Analytics account, you’ll be given Site code, which you can copy to your clipboard. To get the site code from an existing Fathom account, click Settings at the top right.
Get the tracking code
Within the site creation sequence or via the `Settings` screen, copy the `Site code` to your clipboard.
Use Ghost code injection
In Ghost you can inject code across your entire site or on an individual post or page. Since Fathom Analytics needs to track analytics across your entire site, we'll use the global code injection feature which can be found in the Ghost Admin settings menu.
Fathom Analytics requires the tracking code to be in the
<head> of each page on your site, so paste it into the Header section and hit save.
Your site is now fully integrated with Fathom Analytics and you can now enjoy privacy-focused aggregate data for your website, to see your most popular pages and referrers.