Skip to main content

Simple yet powerful OpenEdX plugin to send event tracking logs to a remote service in order to store additional information about user activity to perform analytic research.

Usage with Tutor

This plugin has been tested with OpenEdX Lilac running under Tutor. For more information about how to add custom requirements to a OpenEdX running under Tutor see: XBlock and edx-platform plugin development

Once the package is added, you can add the ApiBackend to your CMS/LMS settings. To do this, you should override the default TRACKING_BACKENDS and EVENT_TRACKING_BACKENDS from cms/envs/common.py and lms/evns/common.py settings files.

TRACKING_BACKENDS['api'] = {
    'ENGINE': 'edx_analytics_logger.api.ApiBackend',
    'OPTIONS': {
     'http_method': 'POST'
     'endpoint': '<FILL_WITH_AN_URI>',
     'headers': {
         'Content-type': 'application/json',
         'Authorization': 'Token <FILL_WITH_A_TOKEN>',
         # ...
         }
     }
}

EVENT_TRACKING_BACKENDS['tracking_logs']['OPTIONS']['backends']['api'] = {
    'ENGINE': 'edx_analytics_logger.api.ApiBackend',
    'OPTIONS': {
     'http_method': 'POST'
     'endpoint': '<FILL_WITH_AN_URI>',
     'headers': {
         'Content-type': 'application/json',
         'Authorization': 'Token <FILL_WITH_A_TOKEN>',
         # ...
         }
     }
}

This could be accomplished by writing a custom plugin to add these settings in CMS/LMS settings.

Additional notes

This project has been tested using Django REST Framework service as backend. OpenEdX Analytics Logger could be hugely improved to support more settings, authentication mechanisms and more options. Feel free to contribute by reporting bugs, suggesting improvements or opening Pull Requests.

Metadata

Release files for edx-analytics-logger 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edx-analytics-logger 1.2.1
File Size Uploaded
edx-analytics-logger-1.2.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edx-analytics-logger 1.2.1
File Interpreter ABI Platform
edx_analytics_logger-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / edx-analytics-logger-1.2.1.tar.gz

Download URL edx-analytics-logger-1.2.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e09b6cfca29b036f381bfe9dbc91989971fbe7c61c0e6143e57fb9c2cc0876a8
BLAKE2b-256 checksum
How to use checksums
9ab73a0205828e1d072528a6bf39d2f01127bd2dfb02712a883e6645f0b5d3a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / edx_analytics_logger-1.2.1-py3-none-any.whl

Download URL edx_analytics_logger-1.2.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50475c6c3d1c5f601b9b857c47ee29c66511ec085af78a369c7f5a530aad7583
BLAKE2b-256 checksum
How to use checksums
66ee888fa5d5731ad8b4d66725243998cf11386df77dfd4f1f2a4d845ebcffeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page