Ackee icon indicating copy to clipboard operation
Ackee copied to clipboard

Report Referrer per Page (URL/path)

Open walski opened this issue 4 years ago • 3 comments

🐣 Is your feature request related to a problem? Please describe.

I want to find out where visitors to a specific page are coming from. E.g.: I get an unusual amount of traffic to page /abc/xyz, now I want to know which referrer these visitors have set.

💡 Describe the solution you'd like

A way (API only would be good enough™) to filter the getDomainsStatistics query down by path. Basically creating a new query like getDomainStatisticsForPath.

❓ Describe alternatives you've considered

I don't see any API for querying the raw records either. So I cannot really see any alternative. Doesn't have to mean there is none :)

walski avatar Mar 20 '21 22:03 walski

Certainly related to the issue I opened here https://github.com/electerious/Ackee/issues/234 I plan to work on this feature this month...

ManUtopiK avatar Apr 06 '21 13:04 ManUtopiK

Any progress on this feature? @ManUtopiK

Also not knowing a lot about this system internally, couldn't you bypass the API as a temporary fix, then make some advanced query? (of course meaning that you have to establish a mongo db connection yourself)

Isn't this feature pretty basic and very much needed for any site with lots of content that is shared? :)

aske-cph avatar Apr 18 '21 13:04 aske-cph

@aske-cph Yes, I'm working on it. You can see the work in progress in the viewsPerPage branch here: https://github.com/ManUtopiK/Ackee/tree/viewsPerPage

Only the api works fine. You can fetch stats per page with:

{
  domain(id: "yourDomainID") {
    statistics {
      viewsPerPage(
        page: "thePageURL"
        interval: DAILY
        type: TOTAL
      ) {
        id
        count
      }
    }
  }
}

Or directly with:

statistics {
  viewsPerPage(
    page: "thePageURL"
    interval: DAILY
    type: TOTAL
  ) {
    id
    count
  }
}

I will work on the UI, but I haven't worked with React for 3 years. I work with Vuejs and Svelte. React is very ugly...

ManUtopiK avatar Apr 20 '21 12:04 ManUtopiK