Releases: digital-analytics-program/gov-wide-code
DAP 8.5.0
What's new in DAP 8.5.0
Features
Core Web Vitals
The DAP code now tracks Core Web Vitals for the homepages of all sites. Core Web Vitals are a set of standardized metrics introduced by Google to measure and optimize user experience on websites. They focus on three key aspects of web performance - loading performance, interactivity, and visual stability - in order to provide actionable insights into how users perceive the speed, responsiveness, and stability of a web page.
Reports for Core Web Vitals are available in the "GA4 - Gov-wide DAP Property".
See more details on the wiki.
Bug fixes
- Modified PII redaction to allow valid
lat
andlon
query string parameters to be reported without redaction (invalid lat/lon values will still be redacted). Previously, such parameters were being misidentified as containing telephone numbers, which caused them to be redacted.
Security and privacy
The Core Web Vitals feature requires a dependency on a new third-party library, web-vitals, which we are hosting alongside the DAP code on https://dap.digitalgov.gov/. The web-vitals library is maintained by the Google Chrome team and is security scanned by our team before it is uploaded to https://dap.digitalgov.gov/.
Agency-specific changes
- Department of Commerce: Added
issuedby
andwwa
as allowed query parameters.
DAP 8.4.0
What's Changed
- Copyright message - Removing CP Copyright statement from the DAP code.
- Lowercase Parameter - Only Lowercase page_url and leave other parameters on its original casing
- Add Social Click part of gas4() function
- Query String - “product“ to DOC agency and "PostID" to HUD. site", "lat" and "lon" to DOC/NOAA
DAP 8.3.0
What's Changed
New: HTML 5 Video/Audio Tracker: New functionality was added to track HTML5 Video/Audio. The tracker is on by default, however users can turn in off using a custom parameter "htmlvideo".
New: Added new parameter htmlvideo to enable and disable HTML5 media tracking.
Update: Modified ytm parameter to set milestone value for YouTube and HTML5 media Tracker. This parameter accept 10.20, and 25, If set to any value other than the preset list (10,20,25), it'll be defaulted to 25.
Update: The DAP code was updated to prevent its variables leak into, polluting, and potentially conflict with other variables in the global scope of whatever page the script is included in. This update also fixed the problem where the minifier didn't try to "mangle" (i.e. shorten) top-level variables, which was limiting how much the code can be minified.