Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report Referrer per Page (URL/path) #244

Open
walski opened this issue Mar 20, 2021 · 3 comments
Open

Report Referrer per Page (URL/path) #244

walski opened this issue Mar 20, 2021 · 3 comments

Comments

@walski
Copy link

walski commented Mar 20, 2021

🐣 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 :)

@ManUtopiK
Copy link

Certainly related to the issue I opened here #234
I plan to work on this feature this month...

@aske-cph
Copy link

aske-cph commented Apr 18, 2021

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? :)

@ManUtopiK
Copy link

ManUtopiK commented Apr 20, 2021

@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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants