Skip to main content
Learn more about

Our data journey

One of the guiding philosophies we've had since we started Fathom was that we always want to be radically transparent about how data is processed and stored. We comply with all relevant privacy laws and ensure that we always practice data minimization (only processing and saving data that's essential, useful, and privacy-first).

We're going to go into extreme detail about what happens when you put our Fathom script on your website and how it then protects your website visitors' privacy.

So, let's say you've just put the Fathom Analytics script on your website or enabled one of our plugins within your CMS. The script is live and ready to collect privacy-first website analytics. And then you (or any website visitor to your site) load your website in a browser.

🇪🇺 As of late 2021, following the Schrems II ruling, we have launched EU Isolation, meaning EU visitors' IP addresses never touch US-controlled infrastructure (see: Schrems II compliance).

If you read "IP Address" below, and are wondering about whether the IP Address of an EU data subject touches US infrastructure, the answer is: no, it doesn't. We only process EU data subject IP addresses temporarily on EU-located infrastructure in accordance with our Data Processing Agreement.

Loading our cookie-free script

The Fathom embed script (a javascript file) is loaded from our global content delivery network (CDN). This means that the file loads rapidly from a server sitting in a city closest to you. Typical load times are around 30 milliseconds.

Once the script is loaded, a pageview request is sent to either our EU-located servers via EU Isolation (if the visitor is in the EU) or to our servers in the United States if they're outside of the EU. This request will contain details about the page you're on and the website that referred you. The browser will also send our servers your IP Address and User-Agent (which contains details about the browser you're using and device type). Our technology doesn't use cookies, so you won't need an annoying cookie consent banner taking up half of your page.

Our firewall

We keep track of how many requests each IP Address performs per second and over the course of 1 second - 5 minutes. This is to help us prevent DDoS spam attacks. Again, EU visitor traffic is routed via EU-located infrastructure.

We don't keep personal data in our logs, as this goes against everything we stand for. The only time we'll temporarily retain personal data (IP Address) in our logs is when an IP address has been marked as an attacker (meaning they're hitting us as part of a DDoS attack).

Our security checks

We keep counts of how many requests your IP Address makes to our system. Yes, we do this at the firewall level too, but we also have some application logic to protect ourselves. We do this to prevent spam attacks. The data we keep looks like this:

111.22.333.444 = 3 requests
777.88.999.111 = 1 request

We keep these counts for varying periods of time, which we won't publicly disclose for security reasons, but we practice data minimization on what we keep. At most, we keep your IP count for 24 hours after your first request, similar to our access log policy.

If we detect minor abuse from an IP Address, we will block the IP Address at the application level for a brief period of time.

If we detect more serious abuse at the application level, we will permanently block the IP Address at the firewall level. This will mean that the IP Address is kept permanently to protect our systems. At the time of writing, this has only happened once.

Establishing if you're a new visitor

Once you're past our firewall, we need to establish uniques/visits to your website, and the way we do this is via a privacy-first unique visits method we invented back in 2019. Long story short, we keep SHA256 hashes (learn about hashes and salts) that allow us to determine unique visitors over the course of 24 hours without creating any privacy risk.

Here's an example of the data we receive about you when you load a website that uses Fathom:

Your IP: 111.22.333.444
Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

One of our guiding development principles is that we don't want to store your raw data (IP and User-Agent) alongside your browsing activity, as that wouldn't be as privacy-friendly, so we need to create a “signature” that we can use to identify you on your next visit.

Many analytics companies will store your raw IP Address and User Agent alongside your browsing activity, and it's a practice we don't agree with. We will never, ever do this. We will only ever store raw IP Addresses for security purposes, and they do not form part of our customer data exports, and they're not shown on customer dashboards. The only time we will review IP Addresses is when we are under a DDoS attack, and our DDoS protection team needs to identify malicious actors.

  1. User Signature Hash. We use this as the base hash. This is our way of anonymously identifying a visitor (you, in this case) without knowing it's actually you. This allows us to collect site-level uniques. This hash sits alongside your pageviews and is used to remove pageviews in the event of spam. We create this hash by combining the following data:
    1. Salt. We have a unique salt per site, which is recycled each day at midnight. This is put in place to make it impossible for a hacker to brute force the hashes. We'll go into more information about brute-forcing below.
    2. IP Address. This is typically unique to your network and needs no explanation. There will be occasions where you'll be on a shared network or proxy, but it's reliable most of the time.
    3. User-Agent. The User-Agent, combined with your IP Address, often brings more uniqueness to the user signature hash.
    4. Hostname. This is the website address (e.g. http://www.milliondollarhomepage.com). This is a crucial parameter because it means we can't collect browsing activity between websites.
  2. Page Request Signature Hash. Each time you view a page, we generate a hash that will tell us that you've viewed a page. We use this to collect uniques at a page level. This hash consists of the following data:
    1. User Signature. The user signature is the base of this hash.
    2. Pathname. The pathname (e.g. /blog) that was accessed.

We then perform an existence check on the hashes. If they don't exist in our database, it means that we're dealing with a unique. If they do exist, it means we're dealing with a return visitor. If the hashes don't already exist in the database, we add them in, and they're kept until midnight when they're automatically deleted.

The beauty of this hash system is that we (or anyone else) can't do anything with these hashes, nor can we “unravel” them to see personal details. They're only valuable for the duration of a database existence check. Outside of that, they're completely, beautifully useless:

  • If you somehow broke into AWS, where our servers are hosted and were able to get hold of all of our hashes and salt keys, there'd still be quadrillions of possible combinations for a brute force, and nobody on this planet has the resources to achieve it. We have run the numbers, and your hacking budget would need to be multiple times the GWP (Gross world product), which would be hundreds of trillions of dollars.
  • We round pageview timestamps up to the nearest hour instead of keeping “per second granularity”. We do this because it means we can't cross-reference access logs (which contain access by the second) to our database of browsing activity. We do this intentionally to ensure privacy is protected.

Saving the pageview

Once we've established if you're a unique visitor, we're ready to store the pageview in our database. Here's an example of everything we store in our database when we receive a pageview.

Pageviews Table

We insert the following payload into the database when receiving a pageview:

{
id: 232332323234234,
user_signature: 5f9b9f01f747722565af71b4e602dc6239f050616b2dfa00944db79b84804c32,
site_id: 1234,
hostname: http://www.milliondollarhomepage.com
pathname: /blog
is_new_visit: true,
is_new_session: true,
is_unique: true,
referrer_hostname: https://bing.com,
referrer_pathname: /about,
timestamp: 2021-01-01 00:01:05,
duration: 0,
}

Notice that the above payload contains zero personal data. The user signature is technically pseudo-anonymized data under GDPR, but that's only a technicality. You could not brute force a hash like this. We refer to the user_signature as practically anonymous. If you had hundreds of trillions of dollars, you could brute force it.

Page Stats, Referrer Stats, Site Stats, Browser Stats, Device Type Stats and Country Stats

We keep data for pages, referrers, and other stats. We do this to ensure a fast dashboard experience. We do this to ensure maximum performance on dashboards.

Here is an example of how we track data for Page Stats:

{
site_id: 1234,
hostname: https://milliondollarhomepage.com,
pathname: /blog,
pageviews: 1,
visits: 1,
timestamp: 2021-01-01 00:00:00 (aggregated to current hour)
}

It works in the same way for Referrer Stats, Browser Stats, etc. But for something like Browser Stats, we'd store browser_name and browser_version instead of hostname and pathname.

Counting bounces and duration

When the user leaves the website page, we attempt to fire off a 2nd request. Due to different rules in different browsers, this request won't always fire. However, it will fire most of the time since the most popular browsers in the world support this.

When the 2nd request fires, it sends across all the information that the 1st request had, but it also sends the time on page (in seconds). Since we're receiving a second request, we also know that it wasn't a bounce. So we can update the previous pageview (by User Signature), set the duration, mark it as “not a bounce”, and then update the various aggregation tables (page_stats, browser_stats, etc.).

Data collection without privacy invasion

That's it!

We just processed your visit to your website using Fathom, and this is how we do it for every visit that happens when your website uses our analytics script. We were able to extract information that will be useful for your business, and we preserved the privacy of your visitor. This is how it should be. We don't need to invade your website visitors' privacy to provide you with data. We have spent thousands of hours thinking about and then building the most privacy-friendly methods, and your website visitors' will appreciate you for it.

Now you've just finished reading this, you've got a complete insight into how we do things at Fathom, but you may be curious about how this ties into privacy law. We're fortunate to have a top tier, EU-based privacy officer, access to some incredible lawyers and an obsession with privacy law.

Here is a list of the compliance that we focus on for our privacy-first analytics service:

And as always, if you have any questions about how we process data, you can contact us.

Pixel cat

Switch to a better Google Analytics alternative

Fathom Analytics is simpler, more accurate and privacy-first. Import your Google Analytics data (UA and GA4), add our single line of code, and watch real-time analytics from your site pour in.

Start a 30-day, unlimited free trial to see how simple analytics can be.

Get started

Check out our full-featured, live demo to see how our software works.

Live demo