From 2c8aa46bde90598db15ef7f4393f23c39ccb348d Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Fri, 3 Jan 2025 19:50:03 +0530 Subject: [PATCH] fixup! chore: Add matamo integration doc --- source/site_ops/how-tos/matamo-analytics.rst | 26 +++++++------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/source/site_ops/how-tos/matamo-analytics.rst b/source/site_ops/how-tos/matamo-analytics.rst index 0db695272..aa568816b 100644 --- a/source/site_ops/how-tos/matamo-analytics.rst +++ b/source/site_ops/how-tos/matamo-analytics.rst @@ -1,28 +1,20 @@ Configuring Matamo Analytics ############################# -In addition to Google Analytics the Open edX platform is flexible enough to support different analytics -tool. +In addition to Google Analytics, the Open edX platform is flexible enough to support different analytics tools. -In order to inject various analytics there is a provision to add them to head or body using `head-extra.html`, `body-initial.html` or -`body-extra.html`. +To inject various analytics, there is a provision to add them to the head or body using head-extra.html, body-initial.html, or body-extra.html. -One needs to be using comprehensive theme in order to use these templates. More information can be found at `README.rst under themes -in edx-platform `_. +One needs to be using the comprehensive theme to use these templates. More information can be found in the `README.rst under themes in edx-platform `_. -Let us walk you through integrating Matamo to the platform: +Let us walk you through integrating Matamo into the platform: -Matamo demands to be included under the head tag of the page hence we will be using `head-extra.html` to include the analytics -script. +Matamo needs to be included under the head tag of the page; hence, we will use head-extra.html to include the analytics script. -1. Create `head-extra.html` file under {theme}/lms/templates/. -2. Add the script given by the platform in the file. -3. Apply the theme and we are good to go. +1. Create the head-extra.html file under {theme}/lms/templates/. +2. Add the script provided by the platform to the file. +3. Apply the theme, and we are good to go. Note:: -This will only be applied to the pages served by LMS and would not be supported by different MFEs used by the platform. -Hence, for introducing the same you need to create a custom component and put it in a slot. You can have a look at `frontend-footer-component `_. - - - +This will only be applied to the pages served by LMS and would not be supported by different MFEs used by the platform. Hence, to introduce the same, you need to create a custom component and put it in a slot. You can have a look at the `frontend-footer-component `_.