18F / analytics.usa.gov

The US federal government's web traffic.
https://analytics.usa.gov
Other
715 stars 189 forks source link

Bounce rate dataset is empty #1313

Closed cresharper closed 3 weeks ago

cresharper commented 1 month ago

What kind of issue?

User story

Please provide us with a description of the issue as a user story As a , I would like to , so that I can .

I can't/don't know how to access bounce rate dataset for treasury.

per the documentation:

The URL for the API is https://api.gsa.gov/analytics/dap/v2.0.0, and it exposes 3 routes to query data:

/reports/<report name>/data
/agencies/<agency name>/reports/<report name>/data
/domain/<domain>/reports/<report name>/data

I do bounce rate like this:

https://api.gsa.gov/analytics/dap/v2.0.0/agencies/treasury/reports/bounce_rate/data?api_key=MYAPIKEY

I get nothing, just an empty array. Why?

Acceptance Criteria

Notes

Tasks (Optional)

levinmr commented 1 month ago

Thank you for the report. We have identified a bug in the V2 API around some agency-specific data and are working to address the issue. We'll post updates as they come.

levinmr commented 3 weeks ago

The issue with missing data has been resolved. All documented routes in the API should have data now from August 2024 to the present.

However, there is no documented report for bounce_rate in the DAP API docs. I do see that bounce_rate is incorrectly noted as a field that can be returned, because none of the reports that the API delivers have this field.

If bounce rate is a desired metric for your purposes, please make a feature request by emailing dap@gsa.gov