EDRN / labcas-ui

User Interface for the Laboratory Catalog and Archive Service (LabCAS)
Apache License 2.0
0 stars 0 forks source link

Add GSA DAP analytics #189

Closed nutjob4life closed 6 months ago

nutjob4life commented 7 months ago

🤔 Tell Us About the Feature

The General Services Administration has implemented a Digital Analytics Program or DAP and requires all public-facing websites to participate—or they will be shut down.

This includes the LabCAS for Consortium for Molecular and Cellular Characterization of Screen-Detected Lesions and for the Early Detection Research Network.

🎇 What Solution You'd Like

The following <script> code needs to appear just before the closing </head> tag in each sites' HTML:

<script async type="text/javascript" id="_fed_an_ua_tag"
    src='https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=JPL-mcl-labcas'></script>
<script async type="text/javascript" id="_fed_an_ua_tag"
    src='https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=JPL-edrn-labcas'></script>

Note that the & may or may not need to be escaped as &amp; depending on your platform.

🩺 Testing

You can confirm the code is properly installed on each site by running, for mcl-labcas:

curl --location --silent 'https://mcl-labcas.jpl.nasa.gov/labcas-ui/templates.html?version=3.0.0#head_template' | egrep digitalgov

and for edrn-labcas:

curl --location --silent 'https://edrn-labcas.jpl.nasa.gov/labcas-ui/templates.html?version=3.0.0#head_template' | egrep digitalgov

If you get no output, the code is not correctly installed.

📧 Followup

Once this has been implemented and tested successfully, please inform the following people by email of its completion:

yuliujpl commented 6 months ago

Done!

nutjob4life commented 6 months ago

@yuliujpl thank you kindly. Were there any commits to go with this?