Ericsson / CodeCompass

CodeCompass is a software comprehension tool for large scale software written in C/C++ and Java
https://codecompass.net
GNU General Public License v3.0
521 stars 102 forks source link

Google analytics integration in the new webgui #642

Closed LoremIPsummer closed 1 year ago

LoremIPsummer commented 1 year ago

Google Analytics integration with the react-ga4 library.

The data should be collected in the same format as it was declared in #526.

I didn't implement the info_tree event, because on the new GUI, clicking on a word in the editor (a.k.a. firing the click_on_word event), automatically brings up the Info tree (and there is no dedicated context menu item for it), so it should be considered a duplicated event.

The GA script only loads when the user gives direct consent by clicking on "Accept." If there is an error during accessing the ga.txt file content (it does not exist), the cookie notice won't show up.

fixes #616 fixes #530