dgidb / dgidb-v5

Providing interactions between drugs and genes sourced from a variety of publications and knowledgebases
https://dgidb.org
MIT License
14 stars 2 forks source link

Setup analytics for v5 #466

Closed mcannon068nw closed 8 months ago

mcannon068nw commented 8 months ago

The google analytics was automatically updated to GA4. Hooked in a basic implementation of this for DGIdb v5 that uses environmental variables to check for whether it should send data or not. This introduces a new package 'React-ga4'.

Currently tracks pageviews, sessions, and engagement. Would be nice to define and add in custom events for queries going forward.

mcannon068nw commented 8 months ago

Actual modified files for this PR are: env.local,