-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Google Analytics 4 #1709
Comments
Google is dropping support for Universal Analytics and will only be supporting GA4 after July 1, 2023. https://support.google.com/analytics/answer/10089681 MetacatUI should soft deprecate UA support for GA4 and eventually deprecate UA within a year. |
from #2149 (comment) @mbjones said:
|
- switch from using universal analytics with analytics.js to google analytics for with gtag.js - move analytics logic into a model that handles initializing gtag, checking if google analytics is enable, sending events, etc. - create a base analytics model that can be extended in the future to use a service other than google analytics Issues #1709 and #2149
Changes to support GA4 have been made in the In light of the fact that we may switch to a different analytics service in the future (#2149), I took the approach of moving all of the analytics logic to a model. An instance of this model gets attached to the global Left to do:
|
Add configurable support for the new version of Google ANalytics (4) which uses the gtag.js API instead of analytics.js. We may want to support using both since Google ANalytics still seems somewhat immature and metacatui users may want to support both versions for a while before fully switching over.
The text was updated successfully, but these errors were encountered: