Articles on: Billing & pricing

Why is there a discrepancy between the number of searches in analytics and the billing overview?

When you enable Analytics, Meilisearch Cloud changes your project's API URL to an edge URL, which is the only URL that tracks metrics for analytics. The original URL, however, remains functional, meaning that requests made through it are not tracked in the analytics page but are still counted in the billing overview.

Similarly, if you disable analytics, the edge URL continues to work for your instance. We keep both URLs functional to allow users to enable or disable analytics conveniently. However, this can lead to inconsistencies between the number of searches reported in the analytics and the billing overview.

Additionally, when using the edge URL, we employ a cache system that identifies user typing patterns. This prevents each keystroke from being counted as a separate search by debouncing the tracking requests, while still providing a search-as-you-type experience. This can also contribute to discrepancies.

To align the numbers:
- Always use the edge URL for your requests
- Ensure that the dates selected in the Analytics dashboard match the billing cycle, as the billing cycle is defined from the creation date of your first project and may not align with calendar months

Updated on: 18/07/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!