I am trying to fetch visit summaries from Matomo for a specific time period, using the following API request:
matomo-url/index.php?module=API&method=Live.getLastVisitsDetails&idSite=SITE_ID&period=day&date=today&format=JSON&token_auth=TOKEN_AUTH&filter_limit=-1&minTimestamp=1733724360.016’
I aim to fetch data starting from Monday, 9 December 2024, 06:06:00.016 to the current time.
The issue arises with the timestamps in the API response:
- The main visit timestamp for user lastActionTimestamp converts correctly to Monday, 9 December 2024, 07:00:47.
- However, the timestamps for user actions actionDetails → timestamp incorrectly convert to Sunday, 8 December 2024, 23:00:47, which is not within the intended timeframe.
I want to ensure all timestamps, including user action timestamps, align with the specified minTimestamp. How can I adjust the query or fix this discrepancy in the returned data?