Skip to content

Deploy: Google Analytics configuration

Sam Sciolla edited this page Apr 12, 2023 · 5 revisions

My Learning Analytics can be configured to send Google Analytics events when users visit different pages, using Google Analytics 4. To set up this feature, perform the following steps:

  1. Set up a Google Analytics account and property for your application's domain.

  2. Find the Measurement ID for your Data Stream, and use it in the "GA_ID" setting in the env.hjson file (see the Configuration doc for more info).

  3. Update the Content Security Policy settings you are using in env.hjson under "CSP" to match what is in the sample configuration file.

    Note: If you are migrating from Universal Analytics, specifically values for the "SCRIPT_SRC", "IMG_SRC", "CONNECT_SRC", and "INCLUDE_NONCE_IN" keys need to be updated.