ncbo / bioportal-project

Serves to consolidate (in Zenhub) all public issues in BioPortal
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

migrate to google analytic 4 #248

Open alexskr opened 2 years ago

alexskr commented 2 years ago

Google Analytics 4 is replacing Universal Analytics. On July 1, 2023, Universal Analytics properties will stop processing new hits.

https://support.google.com/analytics/answer/10759417

syphax-bouazzouni commented 1 year ago

Pinging @gturrisi-lifewatch as they are also working on this at Ecoportal.

jvendetti commented 1 year ago

The necessary changes to support GA4 in the Rails application have been implemented / merged. See https://github.com/ncbo/bioportal_web_ui/pull/271.

If I navigate to analytics.google.com and look at the "BioPortal - GA4" property, there's a message at the top of the page about setup completion:

Screen Shot 2023-06-26 at 12 32 26 PM



Not sure if anything else is needed from me for this task?

graybeal commented 1 year ago

Please create and work with team to assign appropriate tickets for each of the subtasks needed to complete our transition to GAv4. (You may wish to change this ticket to an Epic or equivalent, to make it easier to track its subitems.)

mdorf commented 1 year ago

Google Analytics V1 Data (GA4) no longer supports filtering on the referrers domain names. The issue is described in detail in this doc: https://www.idimension.com/2020/02/google-analytics-no-longer-supports-service-provider-and-network-domain-dimensions/

Below is the reference documentation for the various dimensions and metrics that exist in GA4: https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema

Alternatives do exist, but they don't appear to be trivially implemented. I will remove this filter for now in the new code that supports GA4.