-
Notifications
You must be signed in to change notification settings - Fork 39
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:
-
Set up a Google Analytics account and property for your application's domain.
-
Find the Measurement ID for your Data Stream, and use it in the
"GA_ID"
setting in theenv.hjson
file (see the Configuration doc for more info). -
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.