ImagingDataCommons / idc-slim

Interoperable slide microscopy viewer for thin clients (CORE REPO)
Apache License 2.0
0 stars 0 forks source link

Add support for Google Analytics #51

Closed fedorov closed 2 years ago

fedorov commented 2 years ago

replaces https://github.com/herrmannlab/slim/issues/88

fedorov commented 2 years ago

@hackermd can this issue be prioritized? I understand this is not the most exciting feature to add, but understanding IDC usage is important for our reporting purposes and justifying continuous funding. If we are not able to report usage and justify continuous funding, we will not have funding for the implementation of the more exciting features.

hackermd commented 2 years ago

It should be relatively straight forward to include. However, I don't have any experience with Google Analytics. Looking at OHIF's index.html file, it appears we only need to add a few lines: https://github.com/ImagingDataCommons/Viewers/blob/339768d945b99eb06589979a80397c5f54b97e95/platform/viewer/public/html-templates/index.html#L6-L20

@fedorov Is there anything else we would need?

As discussed, we should include the tracker into the IDC fork.

fedorov commented 2 years ago

Yes, it is probably just those few lines - the standard code from GA. Yes, it should be maintained in the IDC fork.

Punzo commented 2 years ago

done in https://github.com/ImagingDataCommons/slim/pull/57

hackermd commented 2 years ago

Thanks @Punzo