digital-analytics-program / gov-wide-code

Provides a set of javascript files and documentation to implement web analytics on US federal websites
http://www.digital.gov/dap
104 stars 55 forks source link

filetypes/extensions expanded #22

Closed rayantony closed 9 years ago

rayantony commented 9 years ago

To track media more accurately and increase Federal coverage I added some additional extensions currently in use. The CDC sometimes use RIS files, while Medicare has Diagnosis Dataset files for SAS, and many agencies use Kindle devices so ePub and related extensions. But these additions will cover most use cases

smarina04 commented 9 years ago

Developers can add additional file extensions as part of the querystring outside of the .js file and make it part of the script tag itself, e.g.

<script type="text/javascript" id="_fed_an_js_tag" src="/js/federated-analytics.all.min.js?agency=XYZT&exts=ris"></script>