Milestone 8.2 of the Digital Government Strategy calls for agencies to implement performance and customer satisfaction measuring tools on all .gov websites. To help your agency meet this requirement, GSA’s Digital Services Innovation Center procured a Google Analytics (GA) Premium custom solution that does the following:
- Provides a federal-wide view of .gov websites
- Is easy to add to your site with only one line of code
- Smoothly integrates with GA code you may already have on your site
Instructions for Adding Custom Web Analytics Code to Federal Agency Websites
Agencies have two options for the DAP code implementation, all described in detail in the DAP Implementation Guide (PDF, 195 KB, 10 pages, August 2016) and outlined below.
Centrally hosted (recommended): the implementation involves calling the DAP code file via a central host location that the Digital Analytics Program hosts at: https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js.
The DAP team continuously updates this file with new versions and/or bug fixes periodically, and those changes take effect immediately on sites implemented with the file via the above location. We’ve taken every measure possible to make this option easy and secure. Please see our GitHub repo for more explanation and the implementation guide for specific steps.
Locally hosted: The other (original) option is to continue to host the DAP code file locally, as many agencies have done in the past. If you determine this is the right option for your agency website, please choose one of the below file versions (posted on Github) to host the DAP code locally and review the implementation guide for specific steps.
If you have any questions, please email us at email@example.com. We’d be happy to assist.
Recommended Privacy Notice for Agencies Using Google Analytics Premium
U.S. federal government agency websites using Google Analytics Premium as part of the Digital Government Strategy may place the following information on their website:
This website uses Google Analytics Premium. Please refer to the following policies on Google’s website for more information: