DAP Code Version - digital-analytics-program/gov-wide-code GitHub Wiki
It is crucial to ensure the DAP code is implemented with the latest DAP code version. The easiest and most efficient way to ensure this is to Centrally host the DAP code.
Use Site Scanning Data to Check Your DAP Code Version
Site Scanning, a GSA program that discovers, scans and generates information about federal websites compliance (including detection of the DAP javascript code).
-
Download the primary CSV dataset.
-
Open the data in a spreadsheet program.
-
Apply filters to view the websites (i.e., target URLs) for your agency, bureau, or domain only.
-
Review the data for DAP-specific variables in columns AJ, AK, AL(summarized in Table the below).
| Variable | Column | Description |
|---|---|---|
| dap | AJ | A value of “TRUE” means the DAP tag was detected. |
| dap_parameters | AK | DAP parameters that were detected (e.g., agency, sub-agency, YouTube tracking) |
| dap_version | AL | The DAP code version that was detected |
- Your DAP code version is up to date if column AL contains "20240711 v8.4 - GA4" (screenshot below). If it displays an older version, then you will have to update your code to the latest version. If the field is empty, confirm that DAP has been implemented.
[!IMPORTANT] As of November 7, 2024, the lastet DAP Version is 8.4