text: (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
      
      ga('create', 'UA-171409849-1', 'auto');
      ga('send', 'pageview');
  
  
      /* Control the default view mode */
  const viewerConfig = {
      /* Allowed possible values are "FIT_PAGE", "FIT_WIDTH" or "" */
      defaultViewMode: "FIT_PAGE",
      showPageControls : true,
      showAnnotationTools: true,
      showDownloadPDF : true,
      showPrintPDF:true,
      dockPageControls:true,
      showLeftHandPanel:false
  };
  
  /* Wait for Adobe Document Cloud View SDK to be ready */
  document.addEventListener("adobe_dc_view_sdk.ready", function () {
      /* Initialize the AdobeDC View object */
      var adobeDCView = new AdobeDC.View({
          /* Pass your registered client id */
          clientId: "096b097fc7284678a650f6f37265c528",
          /* Pass the div id in which PDF should be rendered */
          divId: "adobe-dc-view",
      });
  
      /* Invoke the file preview API on Adobe DC View object */
      adobeDCView.previewFile({
          /* Pass information on how to access the file */
          content: {
              /* Location of file where it is hosted */
              location: {
                  url: "../website.pdf",
              },
          },
          /* Pass meta data of file */
          metaData: {
              /* file name */
              fileName: "file.pdf"
          }
      }, viewerConfig);
  
      adobeDCView.registerCallback(
          /* Type of call back */
          AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,
          /* call back function */
          function (event) {
              switch(event.type){
                  case 'DOCUMENT_OPEN': 
                      ga('send', {
                      hitType: 'event',
                      eventCategory: 'pdf',
                      eventAction: 'document_open',
                      eventLabel:event.data.fileName
                    });
                  break;
                  case 'PAGE_VIEW' : ga('send', {
                      hitType: 'event',
                      eventCategory: 'pdf',
                      eventAction: 'page_view',
                      eventLabel:`${event.data.pageNumber},${event.data.fileName}`
                    });
                  break;
                  case 'DOCUMENT_DOWNLOAD': ga('send', {
                      hitType: 'event',
                      eventCategory: 'pdf',
                      eventAction: 'document_download',
                      eventLabel:event.data.fileName
                    });
                  break;
                  case 'TEXT_COPY' :  ga('send', {
                      hitType: 'event',
                      eventCategory: 'pdf',
                      eventAction: 'text_copy',
                      eventLabel:`${event.data.copiedText},${event.data.fileName}`
                    });
                  break;
                  default: ;
              }
          },
          /* options to control the callback execution */
          {
              /* Enable PDF analytics events on user interaction. */
              enablePDFAnalytics: true,
          }
      );
  });
  
  
  