Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3970

Send custom page view event to Google Analytics for IGB download button

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Send custom page view events to Google Analytics for the IGB download button in bioviz.org to analyze users' operating systems.

        Attachments

          Issue Links

            Activity

            jsirigin Jaya Sravani Sirigineedi created issue -
            jsirigin Jaya Sravani Sirigineedi made changes -
            Field Original Value New Value
            Status To-Do [ 10305 ] In Progress [ 3 ]
            nfreese Nowlan Freese made changes -
            Epic Link IGBF-2323 [ 18477 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Attachment GA_page_view.png [ 18553 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Attachment GA_page_view_early_access.png [ 18554 ]
            Hide
            jsirigin Jaya Sravani Sirigineedi added a comment - - edited

            Done the required code changes, as discussed, created separate page views for button clicks for the current release download (both download and otherDownload page download buttons) and early release download in the earlyAccessDownload page. Also, changed the IGB version in the otherDownloads.html file to reflect the current release version and match with the download.html file IGB version. Tested and everything is working as expected. Here is the updated code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970 Below are a few screenshots.

            Please review and let me know if there are any issues.

            Show
            jsirigin Jaya Sravani Sirigineedi added a comment - - edited Done the required code changes, as discussed, created separate page views for button clicks for the current release download (both download and otherDownload page download buttons) and early release download in the earlyAccessDownload page. Also, changed the IGB version in the otherDownloads.html file to reflect the current release version and match with the download.html file IGB version. Tested and everything is working as expected. Here is the updated code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970 Below are a few screenshots. Please review and let me know if there are any issues.
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            Hide
            ann.loraine Ann Loraine added a comment -

            A question for Jaya Sravani Sirigineedi: Is this already implemented in the main analytics account?

            Show
            ann.loraine Ann Loraine added a comment - A question for Jaya Sravani Sirigineedi : Is this already implemented in the main analytics account?
            ann.loraine Ann Loraine made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 5 [ 206 ] Fall 5, Fall 6 [ 206, 207 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status First Level Review in Progress [ 10301 ] To-Do [ 10305 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Hide
            jsirigin Jaya Sravani Sirigineedi added a comment - - edited

            Notes from the discussion for this ticket: Change the name of the page views for the "OS - Download" to "Download Button Clicked - OS" and "OS - Early access Download" to "Early access Download Button Clicked - OS" to make it more understandable. Also, move the newly added javascript file to js folder.

            Show
            jsirigin Jaya Sravani Sirigineedi added a comment - - edited Notes from the discussion for this ticket: Change the name of the page views for the "OS - Download" to "Download Button Clicked - OS" and "OS - Early access Download" to "Early access Download Button Clicked - OS" to make it more understandable. Also, move the newly added javascript file to js folder.
            Hide
            jsirigin Jaya Sravani Sirigineedi added a comment -

            Updated the code to change the name of the page views as described above. Tested, everything is working as expected. Here is the latest code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970.

            Show
            jsirigin Jaya Sravani Sirigineedi added a comment - Updated the code to change the name of the page views as described above. Tested, everything is working as expected. Here is the latest code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970 .
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Thank you for making the requested changes! Please submit PR when ready.

            Show
            ann.loraine Ann Loraine added a comment - Thank you for making the requested changes! Please submit PR when ready.
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            Hide
            jsirigin Jaya Sravani Sirigineedi added a comment -

            I made a few more minor changes (added if conditions and added page_path attribute as well to the GA event), these don't have any major impact but improve the code and avoid sending any unnecessary events or throwing errors. Here is the updated code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970. Tested it after the changes, working as expected. Please review once again and let me know if there are any issues.

            Show
            jsirigin Jaya Sravani Sirigineedi added a comment - I made a few more minor changes (added if conditions and added page_path attribute as well to the GA event), these don't have any major impact but improve the code and avoid sending any unnecessary events or throwing errors. Here is the updated code: https://bitbucket.org/jaya-sravani/bioviz/branch/IGBF-3970 . Tested it after the changes, working as expected. Please review once again and let me know if there are any issues.
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status Reviewing Pull Request [ 10303 ] To-Do [ 10305 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            Hide
            ann.loraine Ann Loraine added a comment -

            The changes make the page code cleaner in my view.
            I have not looked at how the page is rendered in a browser, but it looks like it would be fine.
            Please submit PR when ready, and I will deploy it right away on bioviz.org for final testing.

            Show
            ann.loraine Ann Loraine added a comment - The changes make the page code cleaner in my view. I have not looked at how the page is rendered in a browser, but it looks like it would be fine. Please submit PR when ready, and I will deploy it right away on bioviz.org for final testing.
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            Show
            jsirigin Jaya Sravani Sirigineedi added a comment - Raised the PR: https://bitbucket.org/lorainelab/bioviz/pull-requests/163
            jsirigin Jaya Sravani Sirigineedi made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            jsirigin Jaya Sravani Sirigineedi made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            I have merged the PR and deployed the new content on BioViz.org.

            Probably we can test that it is working as expected after 24 hours have passed?

            To test:

            • Log into analytics.google.com. You should have access if you are part of the team to view account "IGB Usage" property "Bioviz.org Web site". If you do not have access, ask Dr. Loraine to be added.
            • For your reference, take a look at the new javascript file added here: https://bioviz.org/js/sendCustomDownloadGAEvent.js
            • Note that when a user clicks the current release download button or the early access release download button, a page hit should be logged in google analytics. This page hit is meant to log whenever a user clicks the Download Button and starts downloading an IGB version for their particular platform
            • If the user has clicked the current release download button, the name of the page should be "Download Button Clicked - " + osName
            • If the user has clicked an early access download button, the name of the page "Early Access Download Button Clicked - " + osName;

            Please try downloading the Windows and Mac installers by clicking the button. Note that you will have to use a Windows browser to check the Windows download and a Mac browser to check the Mac download.

            Currently, the Linux download doesn't work due to an as-yet unresolved issue - see linked tickets.

            Show
            ann.loraine Ann Loraine added a comment - I have merged the PR and deployed the new content on BioViz.org. Probably we can test that it is working as expected after 24 hours have passed? To test: Log into analytics.google.com. You should have access if you are part of the team to view account "IGB Usage" property "Bioviz.org Web site". If you do not have access, ask Dr. Loraine to be added. For your reference, take a look at the new javascript file added here: https://bioviz.org/js/sendCustomDownloadGAEvent.js Note that when a user clicks the current release download button or the early access release download button, a page hit should be logged in google analytics. This page hit is meant to log whenever a user clicks the Download Button and starts downloading an IGB version for their particular platform If the user has clicked the current release download button, the name of the page should be "Download Button Clicked - " + osName If the user has clicked an early access download button, the name of the page "Early Access Download Button Clicked - " + osName; Please try downloading the Windows and Mac installers by clicking the button. Note that you will have to use a Windows browser to check the Windows download and a Mac browser to check the Mac download. Currently, the Linux download doesn't work due to an as-yet unresolved issue - see linked tickets.
            ann.loraine Ann Loraine made changes -
            Link This issue relates to IGBF-3957 [ IGBF-3957 ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 5, Fall 6 [ 206, 207 ] Fall 5, Fall 6, Fall 7 [ 206, 207, 208 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Assignee Ann Loraine [ aloraine ]
            nfreese Nowlan Freese made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            Hide
            nfreese Nowlan Freese added a comment - - edited

            I tested Mac, Windows, Linux for the IGB Download page, Available Installers page, and IGB Early Access Download page. They all appear to be working correctly.

            Tested on my Mac using Chrome with different user agents for Mac, Windows, and Linux.

            Closing ticket

            Download button clicked - mac - working, IGB Download
            Download button clicked - windows - working, IGB Download
            Download button clicked - linux - working, IGB Download

            Download button clicked - mac - working, Available Installers
            Download button clicked - windows - working, Available Installers
            Download button clicked - linux - working, Available Installers

            Early Access Download Button clicked - mac - working, IGB Early Access Download
            Early Access Download Button clicked - windows - working, IGB Early Access Download
            Early Access Download Button clicked - linux - working, IGB Early Access Download

            Show
            nfreese Nowlan Freese added a comment - - edited I tested Mac, Windows, Linux for the IGB Download page, Available Installers page, and IGB Early Access Download page. They all appear to be working correctly. Tested on my Mac using Chrome with different user agents for Mac, Windows, and Linux. Closing ticket Download button clicked - mac - working, IGB Download Download button clicked - windows - working, IGB Download Download button clicked - linux - working, IGB Download Download button clicked - mac - working, Available Installers Download button clicked - windows - working, Available Installers Download button clicked - linux - working, Available Installers Early Access Download Button clicked - mac - working, IGB Early Access Download Early Access Download Button clicked - windows - working, IGB Early Access Download Early Access Download Button clicked - linux - working, IGB Early Access Download
            nfreese Nowlan Freese made changes -
            Assignee Jaya Sravani Sirigineedi [ jsirigin ]
            nfreese Nowlan Freese made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

              People

              • Assignee:
                jsirigin Jaya Sravani Sirigineedi
                Reporter:
                jsirigin Jaya Sravani Sirigineedi
              • Votes:
                0 Vote for this issue
                Watchers:
                Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: