Add Your Site to DAP
On this page
2. Use Analytics and User Feedback to Manage Websites and Digital Services
All public facing websites and digital services should be designed around user needs with data driven analysis influencing management and development decisions. Agencies should use qualitative and quantitative data to determine user goals, needs, and behaviors, and continually test websites and digital services to ensure that user needs are addressed.
- A. All agencies must participate in the General Service Administration’s (GSA) Digital Analytics Program (DAP) and deploy the DAP tracking code on all public facing agency websites. The DAP provides agencies with free quantitative analytics to inform website management. Participation in the DAP does not preclude agencies from using other analytics programs.
- B. GSA will maintain a public listing of the domains participating in the DAP and track agency compliance on the DotGov Dashboard.
Participating in the Program
Any federal agency can sign up to use the Digital Analytics Program web analytics tool. Here’s how it works:
- Agencies define a DAP point of contact.
- The U.S. General Services Administration (GSA) will send the agency point of contact (POC) a short registration form to register their agency, and work with them to implement the common page tag code.
- GSA will provide implementation support, access to training, and other resources to the agency POC.
- If you don’t have an identified point of contact, send us an email.
Appropriate Placement of the DAP Script Tag
The DAP script should only be applied to public-facing pages. Public-facing web pages are defined as those that can be accessed without any authentication or login, and are not part of an otherwise “privileged session.”
The DAP script tag should not be placed on pages visited during logged-in sessions. Notably, other seemingly “public” pages that can be accessed without authentication may also be part of privileged sessions; for example, a password reset page that is accessed by clicking a link in an email is not appropriate for DAP code because it assumes the visitor has the privilege of control over the email account used to provide the link.
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, 293 kb, 13 pages PDF), 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 (PDF, 293 kb, 13 pages PDF) for specific steps.
- Locally hosted: The other 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 file versions below (posted on Github) to host the DAP code locally, and review the implementation guide (PDF, 293 kb, 13 pages PDF) for specific steps. Please note that if you choose to implement using the locally hosted version, you will need to upgrade your code each time the DAP team releases a new code version. Failure to update your locally hosted code could impact the quality, security, and/or functionality of data collected in DAP.
With either option (centrally or locally hosted), the Government-Wide Digital Analytics Program website traffic data flows into its own separate Google Analytics account, and should cause no change in your independent Google Analytics account metrics.
If you have any questions, please email us at email@example.com. We’d be happy to assist.