- Issue created by @eric@erubino.net
script tag does not follow DAP Guidelines at https://github.com/digital-analytics-program/gov-wide-code/wiki/DAP-Quic...
Script tag is missing async type="text/javascript" attributes and is not placed in the <head>
Per DAP Support team "We would prefer that developers follow what we instructed on our GitHub page. The placement of the script tag in the body and not having the async attribute could cause loading issues with the script when the page loads. It also allows us to debug easier if we have consistency throughout. The type attribute might not be as important but it is still good to have as well."
Install and use module
Change script from
<script src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=AGENCY" id="_fed_an_ua_tag"></script>
to
<script async type="text/javascript" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=AGENCY" id="_fed_an_ua_tag"></script>
and move from bottom of page in </body>
and place in <head></head>
NA
NA
NA
NA
Active
2.2
Code