Using data from Analytics.Gov capturing website traffic for US government domains, we examine how trends in government website traffic changed over the course of the COVID-19 pandemic. In combination with data on COVID-19 cases, deaths, and vaccinations to track the pandemic’s course, we explore what government websites people accessed during the pandemic and how the traffic on these sites changed as the pandemic progressed. Additionally, we use auxillary Analytics.gov data on traffic source and browser language to offer insights into the demographics of people using government websites and to showcase how people accessed government-published information (e.g through search engines, social media, news, etc.) in times of crisis.
After cloning the repository following these steps to view our work.
- Set up the virtual enviornment by running
poetry install
to install the required packages, thenpoetry shell
to activate the environment - Next, to view the dashboard run
python -m happy_app
- Follow the generated URL (e.g http://127.0.0.1:8051) by copying and pasting it into your prefered web browser
To replicate our data collection process follow these steps:
- Obtain a API key from Analytics.Gov by filling out this form under Getting Started.
- In the repository, store the key in your environment by executing the following line in your shell:
export ANALYTICS_API_KEY=<YOUR KEY HERE>
- Run
python -m happy_app.clean
to pull and clean our data from the APIs. This will take around 20-25 minutes to run to completion.