> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/help-center/ai-agents/analytics-are-missing-or-the-date-range-is-shorter-than-expected.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Analytics are missing or the date range is shorter than expected

Explain analytics history, date ranges, missing Spotify and YouTube days, and download totals.

First inspect the returned `history_window`. A shorter range can be the history available on the current plan, not missing tracking data.

## Check the request

1. Choose one podcast, one episode, or all podcasts together (`all_podcasts: true` in `analytics_summary`). Do not send more than one of them.
2. Use either `from` and `to`, or use one relative range option.
3. Use `days_since_published` only for an episode.
4. Confirm that `from` is not later than `to`.
5. Read `history_window` and any clipping information in the response.
6. Use the `complete` download count when you report downloads.

For Podigee downloads, a day with no traffic is returned as zero. A zero-filled date is different from a missing date. Analytics arrays use chronological order.

## Check video, Spotify, and YouTube figures

1. Call `list_analytics_sources` for the podcast. It lists the sources that this podcast has, with the state of each source.
2. Call `get_source_analytics` to read one source by day, week, or month.
3. Do not add two sources together. Each source counts in its own unit.

Spotify and YouTube figures show only where Podigee has switched them on. When a source is switched off, `list_analytics_sources` does not list it, and `get_source_analytics` answers `unknown_source`. This is not a fault of your podcast.

Spotify delivers its figures about one day late, and YouTube two to five days late. A newest day that did not arrive yet is missing, not zero. Do not report it as a day without plays or views. The sources and their delays are explained in [Analytics semantics](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/analytics-semantics).

## Expected result

The response identifies the effective date range and returns the available series and totals. An upgraded plan can make a longer analytics history visible immediately.

## If the result is still unexpected

Run one simple range without comparison logic. If the problem continues, send Podigee Support the podcast or episode ID, requested range, effective range, `history_window`, time, and sanitized error. Do not send an access token or unrelated listener data.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/help-center/ai-agents/analytics-are-missing-or-the-date-range-is-shorter-than-expected.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
