# Analyticts Are Not Logging

**URL:** <https://forum.ghost.org/t/analyticts-are-not-logging/60140>\
**Category:** Self-hosting\
**Created:** [September 15, 2025, 8:27pm UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140 "2025-09-15T20:27:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MacStainless](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@MacStainless](https://forum.ghost.org/u/MacStainless)\
**Post date:** [September 15, 2025, 8:27pm UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/1 "2025-09-15T20:27:15Z")

</div>

_Forgive the double post, I stupidly deleted my first post by accident._

I’m getting the “batteries all included” Docker setup going on my local server. I have the entire stack working but with analytics, I keep seeing 404 errors and nothing getting logged. The error in the Docker log for Ghost is `INFO "POST /.ghost/analytics/api/v1/page_hit?name=analytics_events" 404 11ms` and I never see anything past 0 on my Analytics page.

I’ve double checked the tokens and URLs in the .env file. I’ve also made sure the top area in the .env file has analytics uncommented. Docker down and up spins up the analytics login, deploy, and sync containers, leaving the analytics container running. Nothing seems to have an error.

Hoping there’s some help I can get about this. Thank you.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 16, 2025, 2:50am UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/2 "2025-09-16T02:50:08Z")

</div>

If the Ghost container is logging that, I think that’s your problem. Those analytics requests are supposed to be going over to the tinybird container. You may need to check your caddy configuration – sounds like you’re maybe missing something?

---

<div class="post-metadata">

**Author:** ![MacStainless](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@MacStainless](https://forum.ghost.org/u/MacStainless)\
**Post date:** [September 16, 2025, 1:43pm UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/3 "2025-09-16T13:43:47Z")

</div>

Thanks for the reply. I went through my setup and realized I needed to update Caddy with the Snippet information (I use Caddy already, so I can’t use the included one with from Ghost as they’d both try to bind to port 80).

Now I’m seeing a 200 response inside the Ghost container, but still nothing is showing in the admin dashboard for any traffic to my site:

`[2025-09-16 13:39:29] INFO "GET /ghost/api/admin/stats/posts/68c84b4b7971090001a2d222/stats/" 200 117ms`

Below is my dashboard after I tried multiple times just now to hit the site and nothing is registering. Is there a delay or job I need to run? I feel like I’m getting closer on this but I’m not quite there yet.

 ![64276](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/4/74776ce12a680f4aa4766a2d06c396d3448fd766.png)

---

<div class="post-metadata">

**Author:** ![mulderfrank](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mulderfrank/32/29721_2.png) [@mulderfrank](https://forum.ghost.org/u/mulderfrank)\
**Post date:** [October 3, 2025, 3:00pm UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/4 "2025-10-03T15:00:15Z")

</div>

Was it solved by waiting?  
Encountered a simular issue, only with nginx proxy manager.

I think the data is not being send to Tinybird, but can’t find out why yet.

---

<div class="post-metadata">

**Author:** ![mulderfrank](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mulderfrank/32/29721_2.png) [@mulderfrank](https://forum.ghost.org/u/mulderfrank)\
**Post date:** [October 3, 2025, 4:35pm UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/5 "2025-10-03T16:35:25Z")

</div>

Ah, something is communicating:

> ghost-1 | [2025-10-03 16:30:07] ERROR Error in Tinybird API request to [https://api.tinybird.co/v0/pipes/api\_top\_pages.json?site\_uuid=xxxxxxxxx&date\_from=2024-08-14&post\_uuid=xxxxxxxxx:](https://api.tinybird.co/v0/pipes/api_top_pages.json?site_uuid=xxxxxxxxx&date_from=2024-08-14&post_uuid=xxxxxxxxx:) Response code 429 (Too Many Requests)

---

<div class="post-metadata">

**Author:** ![justinomics](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@justinomics](https://forum.ghost.org/u/justinomics)\
**Post date:** [November 20, 2025, 7:03am UTC](https://forum.ghost.org/t/analyticts-are-not-logging/60140/6 "2025-11-20T07:03:14Z")

</div>

Thought I’d lend a hand here as I just went through something similar with nginx. Basically, Ghost isn’t being told to include the required `name=analytics_events` query parameter in its analytics tracking requests. The traffic-analytics service requires this parameter to know which Tinybird datasource to send the data to.

To fix it you need to add a `tinybird __tracker__ endpoint` in your `.env` file to include `?name=analytics_events`, allowing Ghost to forward properly formatted requests to Tinybird.

So in my .env file I added this line after the “DOMAIN=” part:

`tinybird __tracker__ endpoint=https://mydomain.com/.ghost/analytics/api/v1/page_hit?name=analytics_events`

In compose.yml in the traffic-analytics section, I added the relevant port:

```auto
...
expose:
  - "3000"
ports:
  - "3000:3000" # Add this line

```

Finally, in Nginx I added this block:

```auto
# Proxy Ghost analytics traffic to Traffic Analytics service
location ~ ^/.ghost/analytics/(.*)$ {
    proxy_pass http://127.0.0.1:3000/$1$is_args$args;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $host;
    proxy_buffering off;
    proxy_cache_bypass $http_upgrade;
}

```

Hope that helps someone!
