Uploaded image for project: 'Atlas Module'
  1. Atlas Module
  2. ATLAS-201

Enable Google Analytics for OpenMRS Atlas

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      We did this before in ATLAS-83, but lost our Google Analytics in the transition to version 3.x. The following needs to be added to the OpenMRS Atlas' index template (i.e., ideally, any public-facing web page for Atlas should contain it):

      <!-- Global site tag (gtag.js) - Google Analytics -->
      <script async src="https://www.googletagmanager.com/gtag/js?id=${GOOGLE_ANALYTICS_TRACKING_ID}"></script>
      <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
      
        gtag('config', '${GOOGLE_ANALYTICS_TRACKING_ID}');
      </script>
      

      Our tracking ID is UA-16695719-3, but this should be set through an environment variable (i.e., be configurable).

        Attachments

          Activity

            People

            Assignee:
            heliostrike Sai Sandeep Mutyala
            Reporter:
            burke Burke Mamlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: