Resolved the issue where “Totals” were displaying as 0 on the “Metrics Per Site” page by making the following changes:
- Corrected the parameters used for retrieving data.
- Investigated the cause of 0 data appearing for certain websites.
- Implemented the inclusion of default values set to 0 for each metric in case the API returns an empty array.
- Addressed the issue of metric display in the charts on both the “Website List” and “Metrics per Site” pages by arranging them chronologically to prevent mixed-up dates.