Analytics.usa.gov: New Features and More Data

Dec 1, 2015
A screencapture from the analytics.usa.gov dahsboard showing 124,878 people were visiting U.S. government websites at that moment.

As of writing this post, 25,225 of the 124,878 total visitors on federal government websites participating in the Digital Analytics Program (DAP) are NOT located in the United States. And as a result of a new location feature on the expanded analytics.usa.gov, you are free to check for yourself how many current users are from outside the country, anytime you’d like.

Back in March of this year, DAP released analytics.usa.gov in collaboration with 18F, which provides the technical support to take DAP data and turn it into a beautiful, open-source, public dashboard. We have been overwhelmed with positive response via social media, press coverage, and thoughtful comments on Github. To our delight, a few other folks used portions of our code to stand up their own web analytics dashboards, including the city governments of Philadelphia, Pennsylvania, and Boulder, Colorado. We even got President Obama to check it out.

We’ve recently added a few new features to analytics.usa.gov: location data, download data, and expanded downloadable files.

Location Data

We’ve created two new location charts on the dashboard: one showing the cities providing the most visitors and one showing U.S. vs. international traffic, including a breakdown of the countries with the most visitors outside the U.S. Both of the visualizations reflect data in real-time (updating every minute), so you can wake-up to see which countries are visiting U.S. government websites while you are asleep! Additionally, while most of the time you’ll see U.S. cities on that particular chart, it is not limited to the United States. If there is a world event and for some reason a large proportion of people in Mumbai, India (for example), are visiting U.S. government websites, the chart will reflect that.

A screencapture of Visitor Locations Right Now' which displays the top 10 cities on the left, and on the right, compares the percentage of visitors from the United States (79.8%) to International ones (20.2%), which includes a list of the top 15 countries.

One thing to keep in mind about location information is that since we anonymize IP addresses of visitors at the earliest possible point, the location data is not accurate enough to pinpoint exact locations of visitors. With IP addresses anonymized, we rely on the network domain and service provider to determine a relative location. As a result, people visiting from a suburb may appear as visiting from the closest city.

Download Data

You can now see not just the popular pages and sites along the right-hand column, but also the most frequently accessed “downloads”.

Two important things to understand about downloads:

  1. Here, “downloads” just means “things other than web pages”, like PDFs and spreadsheets. It doesn’t necessarily mean a visitor chose to save the file, since many browsers open PDFs and other files directly in a separate tab.
  2. Downloads are logged when visitors click links to them from a page that participates in the Digital Analytics Program. It does not include visits from direct links to files, such as links that were emailed, posted on social media, or posted on websites that do not participate in DAP.

PDF files seem to dominate the list, but other extensions in the category include .doc, .xls, and .mp3, among others. The data reflect the number of times the file was accessed in the past seven days.

The Top Downloads section shows the total file downloads over the last week on government sites. This example shows that the application for Naturalization PDF from the United States Citizenship and Immigration Services (USCIS) had 48,909 downloads.

You can click on the page title, “Application for Naturalization | USCIS,” to go to the page where the file is located, or you can click on the file name, “n-400.pdf”, to download (or open) the file right from analytics.usa.gov!

Expanded Downloadable Files

Download the Data provides links to various data files that are updated daily, and every minute.
There’s a limit to how much data we can display on the page for you, so we have greatly expanded the downloadable data reports. We offer downloads of various types of data (some in CSV format and some in JSON) so that you can work with the data yourself!

Previously, the downloadable files generally only contained the same data that was displayed on analytics.usa.gov. Now, some of the files include hundreds or even thousands of rows, where applicable. We have set lower limits on the larger datasets to remove the “long tail” effect. We list pages that have least 10 visitors on the page in real-time, and domains which have received at least 1,000 visits in 30 days.

Over the coming months, we will continue to expand and improve on analytics.usa.gov. We hope you like what we’ve done so far, but there is more to come. We’re continuously evaluating new ideas, and welcome your feedback on GitHub or via email. Tell us what you think, and what you’d like to see in the future.The Digital Analytics Program currently tracks analytics data on over 4,000 U.S. federal government websites across 45 agencies. To learn more or to find out how your agency/website can participate in the program, please email us. For more on 18F, visit 18f.gsa.gov.