GSA / digitalgov.gov

Digital.gov: Better websites. Better government.
https://digital.gov
Other
218 stars 299 forks source link

Bug: JavaScript error: invalid property id (https: //dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA#23) #7784

Closed esabol closed 2 months ago

esabol commented 2 months ago

Recently, we started to see this JavaScript error from Universal-Federated-Analytics-Min.js:

invalid property id (https: //dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA#23)

which is weird because our HTML looks like this:

<!-- Google Analytics -->
        <script type="text/javascript" language="javascript" id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA"></script>

Please advise and/or rectify the error.

nick-mon1 commented 2 months ago

Hello @esabol,

I don't see this script in our repo:

<script type="text/javascript" language="javascript" id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA"></script>

Please provide the file where you think this could be occuring.

esabol commented 2 months ago

The file is https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js. If this isn't the correct repository for maintenance of that file, please let me know what the correct one is.

esabol commented 2 months ago

Never mind. I think it's here:

https://github.com/digital-analytics-program/gov-wide-code

Closing.