Manual Replacement for Google Analytics 4 - Agenda Media - Foundation 23.1 - Foundation 23.1 - Ready - OnBase - Essential - Premier - Standard - external - Standard - Essential - Premier

Agenda Media

Platform
OnBase
Product
Agenda Media
Release
Foundation 23.1
License
Standard
Essential
Premier

If you are not on OnBase 23.1 or higher and wish to continue using Google Analytics past July 1 2023, you will need to manually make the required changes to replace Google Universal Analytics with Google Analytics 4.

After creating your GA4 property and getting the “Measuerment ID” There are two steps to complete in your OnBase Agenda Online environment:

  1. Open the Agenda Online web.config file.
  2. Locate the following line to update the measurment ID: <add key="GoogleAnalytics" value="[MeasurementID (for example, G-xxxxxxxxxx)]" />
  3. Copy the measurement ID from the Web Stream Details screen in Google Analytics. See Google Analytics Integration with Agenda Online for more information.
  4. Open and update the JWPlayer.cshtml page. You can access this page directly from the following location: C:\inetpub\wwwroot\OnBaseAgendaOnline\Views\Media\JWPlayer.cshtml.
  5. Remove the following highlighted lines from the page:
  6. Replace the information you removed with the following highlighted lines:

    You can copy and paste the following text into the page, which is the same as the text highlighted in green:

    @if (ConfigurationItems.HasGoogleAnalyticsKey)

    {

    <script async src="https://www.googletagmanager.com/gtag/js?id=@ConfigurationItems.GoogleAnalytics "</script>>

    <script>

    window.dataLayer = window.dataLayer || [];

    function gtag() { dataLayer.push(arguments); }

    gtag('js', new Date());

    gtag('config', '@ConfigurationItems.GoogleAnalytics', {page_title: '@Model.MeetingName'});

    </script>

    }

  7. Save and close the files you updated.