# 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:** 1\
**Showing post:** 6

<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!

---

_[View the full topic](https://forum.ghost.org/t/analyticts-are-not-logging/60140)._
