Skip to content

Releases: digital-analytics-program/gov-wide-code

DAP 8.5.0

30 Dec 20:52
3305b3d
Compare
Choose a tag to compare

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 and lon 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 and wwa as allowed query parameters.

DAP 8.4.0

21 Nov 18:14
1b788a2
Compare
Choose a tag to compare

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

26 Nov 00:58
4fc2568
Compare
Choose a tag to compare

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.

v8.2.0

26 Nov 01:39
7c14bb3
Compare
Choose a tag to compare

What's Changed

Security

Re-compiled minified code with reduced code obfuscation. The highly obfuscated version was confusing security scans, causing them to report that the DAP code included the compromised Polyfill.js library (which it does not).

DAP 8.1.0

28 Nov 22:05
5c0f4bb
Compare
Choose a tag to compare

What's Changed

Use default name for data layer.

DAP 8.0.0

26 Nov 01:22
e290a65
Compare
Choose a tag to compare

What's Changed

Breaking changes

Removed support for Universal Analytics