From e22d5e67f0cd610695813f15a4371e9fa33d3fd3 Mon Sep 17 00:00:00 2001 From: Muhamed Cicak Date: Tue, 16 Jan 2024 13:10:28 +0300 Subject: [PATCH] Update examples.rst Fixed extra indentation for the Google Analytics plugin example. The extra indentation makes the plugin fail when being activated. --- docs/plugins/examples.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/plugins/examples.rst b/docs/plugins/examples.rst index 615db93543..2b1d763d7f 100644 --- a/docs/plugins/examples.rst +++ b/docs/plugins/examples.rst @@ -43,18 +43,18 @@ Enable Google Analytics :: - from tutor import hooks - - hooks.Filters.ENV_PATCHES.add_items([ - ( - "openedx-common-settings", - "GOOGLE_ANALYTICS_4_ID = 'MY-MEASUREMENT-ID'" - ), - ( - "mfe-lms-common-settings", - "MFE_CONFIG['GOOGLE_ANALYTICS_4_ID'] = 'MY-MEASUREMENT-ID'" - ), - ]) + from tutor import hooks + + hooks.Filters.ENV_PATCHES.add_items([ + ( + "openedx-common-settings", + "GOOGLE_ANALYTICS_4_ID = 'MY-MEASUREMENT-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 `__.