---
title: "Discussion on \"Our analytics counted US visitors twice every evening\" | Hashnode"
description: "Discussion on \"Our analytics counted US visitors twice every evening\". A tester in the US told us our numbers looked wrong. The cause was one assumption about what a \"day\" is."
url: "https://hashnode.com/posts/our-analytics-counted-us-visitors-twice-every-evening/6ad2483064d43830064d19da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Our analytics counted US visitors twice every evening](https://privatrak.hashnode.dev/our-analytics-counted-us-visitors-twice-every-evening?utm_source=hashnode&utm_medium=feed)

A tester in the US told us our numbers looked wrong. The cause was one assumption about what a "day" is.

Oct 16 · 7 min read · privatrak.hashnode.dev  
Read the article

-   [#analytics](https://hashnode.com/tag/analytics)
-   [#privacy](https://hashnode.com/tag/privacy)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Quentin Wendegass](https://hashnode.com/@quentinw)

@quentinw · Bangkok, Thailand

  
[View profile](https://hashnode.com/@quentinw)

Software geek and founder of Privatrak

Software geek and founder of Privatrak: no-code, cookieless product analytics. Writing about what I learn building it.

## Responses 1

Markdown supported · ⌘↵ to post

[StackShortlist](https://hashnode.com/@veristria)

[Oct 16](https://hashnode.com/posts/our-analytics-counted-us-visitors-twice-every-evening/6ad2483064d43830064d19da/comment/6ad2b86786a25f986438aaa9)

The table of what midnight UTC means locally makes the bug obvious in a way prose would not: for Los Angeles the daily\_key rotates at 4 to 5 pm, right in the middle of an evening session. It is a nice example of a privacy choice (rotating the key daily) quietly becoming a counting choice. Deciding the day boundary once, in one place, also fixes the related reports you mention, not just the visitor count.
