isic-archive icon indicating copy to clipboard operation
isic-archive copied to clipboard

Separate Google Analytics events of Girder web app and external web app

Open brianhelba opened this issue 9 years ago • 2 comments

The google_analytics plugin doesn't currently distinguish the root URL from the Girder web client and the web_external web client. For example, navigating to '/' and '/girder' will both result in a hit to '/' on Google Analytics. As another example, /girder/collection/... URLs show up as /collection/..., i.e. the /girder prefix is missing.

brianhelba avatar Sep 01 '16 17:09 brianhelba

We could consider reverting https://github.com/ImageMarkup/isic-archive/pull/151 , depending on his this is fixed.

brianhelba avatar Sep 01 '16 17:09 brianhelba

One solution could be to modify backbone.analytics.js to append Backbone.history.root to the fragment, as described here: https://gist.github.com/daveaugustine/1771986#gistcomment-887486

Update: that doesn't work, root '/' regardless of whether in the Girder app or isic-archive app

msmolens avatar Sep 01 '16 17:09 msmolens