You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analytics code fails: when an agency Universal Analytics tracking code (not DAP)
50
50
uses a custom/non-default tracking object and it is added right after the Federated
51
51
code. In this specific scenario, the Federated code will fail in reporting the first page
52
-
hit and will be able to track normally all the consecutive hits.
52
+
hit and will be able to track normally all the consecutive hits.
53
53
54
54
*Limitation:* The Federated DAP code doesn’t fully support older versions of
55
55
Microsoft Internet Explorer. While the Federated DAP code works with all known
@@ -70,6 +70,16 @@ Browsers that support HSTS and which have observed this HSTS policy (either from
70
70
71
71
Together, HTTPS and HSTS offer a strong, necessary level of transport security and integrity.
72
72
73
+
#### Content Security Policy
74
+
75
+
A Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks to your website, including Cross-Site Scripting (XSS) and data injection attacks. In order to incorporate the DAP JS into your site which includes a Content Security Policy, add the DAP domain and necessary Google domains to your allowed script sources. Also add the Google Analytics domain to your allowed connect sources. Example follows:
This whitelists the DAP domain and necessary Google domains as trusted sources for JavaScript downloads to your site. In order to make your CSP as restrictive and secure as possible, use `script-src` rather than `default-src` to only permit JavaScript to be included from these domains and no other file types. The `connect-src` directive allows the DAP JavaScript code to connect to the Google Analytics domain in order to send analytics data from your site to Google Analytics.
82
+
73
83
#### Data integrity
74
84
75
85
The `dap.digitalgov.gov` domain is currently served by a third party content delivery network (CDN) that serves the current JavaScript referenced in the `master` branch of this GitHub repository.
0 commit comments