Skip to content

Commit

Permalink
docs: fix google analytics example
Browse files Browse the repository at this point in the history
Fixed extra indentation for the Google Analytics plugin example. The extra indentation makes the plugin fail when being activated.
  • Loading branch information
Silidrone authored Jan 22, 2024
1 parent b832f51 commit 7fdc8fc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/plugins/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://docs.openedx.org/en/latest/site_ops/how-tos/google-analytics.html>`__.
Expand Down

0 comments on commit 7fdc8fc

Please sign in to comment.