Update:
To test:
- Probably need to wait for one day to pass for Google Analytics to update
- Log into Google Analytics and observe the BioViz.org Web site google analytics statistics by selecting the "Pages and screens" option and then one of the "Page title" views in the table you will see on this page
- You should now see the following pages getting tracked, under the following scenarios:
Page title "Galaxy bridge - IGB running" tracked when a user clicks "view in IGB" link on a Galaxy data set page and IGB is running on the user's computer.
Page title "Galaxy bridge - IGB not running" tracked when a user clicks "view in IGB" link on a Galaxy data set page and IGB is *NOT* running on the user's computer.
Page title "Galaxy bridge - File Not Found" may or may not get tracked when a user clicks "view in IGB" link on a Galaxy data set page. We are not sure what workflow triggers this event. So far as we know, the only way that this event / page would appear is if the data set in Galaxy did not exist, but how could that happen? The only way to "get to" the Galaxy Bridge page is to click on the "View in IGB" link on a data set page. For that page to exist, the data set would have to exist, also.
Page title ""Galaxy bridge - Genome Version Not Attached" tracked when a user clicks "view in IGB" link on a Galaxy data set page and the data set does not have a "dbkey" variable attached to the Galaxy data set within the Galaxy system.
Unfortunately, I don't know how to test that the above configurations are working as expected because I don't know how a tester can track their own interactions, which I think is what we would need to be able to do to ensure that the analytics is working the way we designed it to!
Made changes to send pageview event to Google Analytics for which scenario the galaxy page is loaded. I have added the error scenarios as well for fileNotFoundError and error-container (genome version not found) divs that aren't mentioned in the description. Tested, three scenarios are working, but I am not able to test the fileNotFoundError scenario, unable to replicate it. I have the following two questions:
Here is the updated code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3994