civichackingagency / scangov

Government digital experience monitor
https://scangov.org
8 stars 2 forks source link

Check for https://analytics.usa.gov participation #96

Open mgifford opened 3 months ago

mgifford commented 3 months ago

Is your feature request related to a problem? Please describe.

We should be able to know if a site is collecting traffic in: https://analytics.usa.gov/

This is a best practice for .gov.

Describe the solution you'd like

I think you can just search for a portion of:

<!-- Analytics for GSA's Office of Strategic Communication (OSC) -->
--
  | <script async src="https://www.googletagmanager.com/gtag/js?id=G-HBYXWFP794"></script>
  | <script>
  | window.dataLayer = window.dataLayer \|\| [];
  | function gtag() { dataLayer.push(arguments); }
  | gtag('js', new Date());
  | gtag('config', 'G-HBYXWFP794');
  | </script>

Describe alternatives you've considered

I think it might also be possible to pull data from: https://analytics.usa.gov/data/

Additional context

lukefretwell commented 3 months ago

Similar to #97 (note Digital Analytics Program)