7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-09 01:02:21 +00:00

docs: Update Google Analytics example to GA4

This commit is contained in:
Brian Mesick 2023-05-26 09:26:38 -04:00 committed by Régis Behmo
parent 185a13a2e1
commit 87ae658773

View File

@ -45,16 +45,21 @@ Enable Google Analytics
from tutor import hooks from tutor import hooks
hooks.Filters.ENV_PATCHES.add_item( hooks.Filters.ENV_PATCHES.add_items([
( (
"openedx-common-settings", "openedx-common-settings",
""" "GOOGLE_ANALYTICS_4_ID = 'MY-MEASUREMENT-ID'"
# googleanalytics special settings ),
GOOGLE_ANALYTICS_ACCOUNT = "UA-your-account" (
GOOGLE_ANALYTICS_TRACKING_ID = "UA-your-tracking-id" "mfe-lms-common-settings",
""" "MFE_CONFIG['GOOGLE_ANALYTICS_4_ID'] = 'MY-MEASUREMENT-ID'"
) ),
) ])
.. note::
Please be aware that as of May 2023 Google Analytics support has been upgraded from Google Universal Analytics to Google Analytics 4 and you may need to update your configuration as mentioned in the `Open edX docs <https://docs.openedx.org/en/latest/site_ops/how-tos/google-analytics.html>`__.
Enable SAML authentication Enable SAML authentication
========================== ==========================