electerious / electerious/Ackee

Any way to get complete history for pages visits?

Open
#365 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.7k
Forks
384
PR merge metrics
No merged PRs in 30d

Description

Hi, I am new here and curious if it is possible to query complete view counts for a page?

The `getDomains.statistics.pages` query needs a `range` param which can't be null and only allows to query data up to 6 months.

So, 2 questions (I could probably figure this out from code but want to confirm)
1) are the views stored indefinitely in the DB? i.e. does Ackee delete 6 months+ old records?
2) is there any way to query that historic data from the API? IMO the simplest idea would be to make the `range` param nullable which will allow to not have any `created` filters in [the aggregations](https://github.com/electerious/Ackee/blob/32025ae383a268551c6cc1e9618e8caa7df5db15/src/aggregations/aggregateTopRecords.js#L39).

Happy to make a PR for the latter. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.