3f08e8a24916a75afd749c152097f58344819a3a max Thu Mar 2 07:11:02 2023 -0800 Ignore the previous commit in code review, that was all wrong, I was looking at the wrong analytics page and thought it was working. The GA4 system is entirely different and the code now spread out over five source files. Also: The part of cart.c that outputs the <HEAD> is getting worse and worse. To test the new code, set the analyticsKey to the value in the cgi-bin-max sandbox and go to https://analytics.google.com/analytics/web/#/p356133243/realtime. All staff should have access (if not email me or Lou or Hiram), refs #30725 diff --git src/hg/inc/googleAnalytics.h src/hg/inc/googleAnalytics.h index b0d1515..2f6082a 100644 --- src/hg/inc/googleAnalytics.h +++ src/hg/inc/googleAnalytics.h @@ -1,10 +1,13 @@ /* Copyright (C) 2008 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef GOOGLEANALYTICS_H #define GOOGLEANALYTICS_H +void googleAnalyticsSetGa4Key(void); +/* if the google analytics key is GA4 key, set the variable in htmlshell */ + void googleAnalytics(void); /* check for analytics configuration items and output google hooks if OK */ #endif /* GOOGLEANALYTICS_H */