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

How to obtain traffic source and other metrics, for specific domain #1384

Open
1 task
rsaridena opened this issue Sep 13, 2024 · 3 comments
Open
1 task

How to obtain traffic source and other metrics, for specific domain #1384

rsaridena opened this issue Sep 13, 2024 · 3 comments

Comments

@rsaridena
Copy link

What kind of issue?

  • Feature Request? Need multiple metrics at domain level

User story

As a user, I would like to obtain different metrics, for a specific domain.

Top Pages count
Traffic source
Top referrals
Session count
Bounce rate

Acceptance Criteria

  • APIs to obtain above required metrics

Notes

Multiple APIs for fetching the above data

Tasks (Optional)

@rsaridena rsaridena changed the title How to obtain traffic source metrics for specific domain How to obtain traffic source and other metrics, for specific domain Sep 13, 2024
@levinmr
Copy link
Contributor

levinmr commented Sep 13, 2024

For session count, an API endpoint exists currently (the data returned will be labelled "visits" this is the same as sessions):

https://api.gsa.gov/analytics/dap/v2/domain/www.example.gov/reports/site/data

For the other requests, these would be new reports for the API. @smarina04 / @MaroyaF may determine if these can be added to the project backlog.

@rsaridena
Copy link
Author

Thanks @levinmr
Checked the response of this API. Can you pls confirm if the "visits" refer to individual pages count or user sessions count? The volume looks to be higher for session count, for the domain that we are checking.
{
"id": 35252964,
"date": "2024-09-10",
"report_name": "site",
"report_agency": "health-human-services",
"domain": "mchb.hrsa.gov",
"visits": 4563
},

@levinmr
Copy link
Contributor

levinmr commented Sep 13, 2024

Thanks @levinmr Checked the response of this API. Can you pls confirm if the "visits" refer to individual pages count or user sessions count? The volume looks to be higher for session count, for the domain that we are checking. { "id": 35252964, "date": "2024-09-10", "report_name": "site", "report_agency": "health-human-services", "domain": "mchb.hrsa.gov", "visits": 4563 },

Visits == Session count

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

2 participants