Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5981

Discrepancy between database and API results in Matomo 5.4.0 – missing URLs

$
0
0

Hello,
I am running Matomo version 5.4.0 and have encountered an unexpected inconsistency. I want to get the number of pageviews for each URLs, but some URLs that clearly have recorded visits in the database do not appear at all in the API response and the dashboard.
The following are the SQL and the API request URL: “https://matomo.org/faq/how-to/how-do-i-write-sql-queries-to-select-visitors-list-of-pageviews-searches-events-in-the-matomo-database/

SELECT *
FROM matomo_log_visit
LEFT JOIN matomo_log_link_visit_action ON matomo_log_visit.idvisit = matomo_log_link_visit_action.idvisit
LEFT JOIN matomo_log_action ON matomo_log_action.idaction = matomo_log_link_visit_action.idaction_url
WHERE matomo_log_visit.idsite = 1
AND type = 1
AND matomo_log_link_visit_action.server_time >= '2025-07-01'
AND matomo_log_link_visit_action.server_time < '2025-07-31';

/index.php?module=API&idSite=1&format=JSON&token_auth=secret&method=VisitsSummary.getVisits&period=month&date=2025-07-01&segment=pageUrl=https://example.com/articles/12345

I have double‑checked that the API request uses the same idSite, date range and period as my database query, but the discrepancy still persists.
Could you let me know whether there are any other processing steps might be causing the API to omit certain URLs, and if there is a recommended way to verify or debug the underlying cause.
Any guidance, references to related tickets would be greatly appreciated. Thank you for your help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5981

Trending Articles