Skip to main content

edx powered ApiBackend

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edx-analytics-logger-1.2.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

edx_analytics_logger-1.2.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file edx-analytics-logger-1.2.1.tar.gz.

File metadata

  • Download URL: edx-analytics-logger-1.2.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for edx-analytics-logger-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e09b6cfca29b036f381bfe9dbc91989971fbe7c61c0e6143e57fb9c2cc0876a8
MD5 018d15a10eb66562446aabe4ce37b3bf
BLAKE2b-256 9ab73a0205828e1d072528a6bf39d2f01127bd2dfb02712a883e6645f0b5d3a6

See more details on using hashes here.

File details

Details for the file edx_analytics_logger-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for edx_analytics_logger-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50475c6c3d1c5f601b9b857c47ee29c66511ec085af78a369c7f5a530aad7583
MD5 c3c95e3f91c7848d74f9a79fc0277d37
BLAKE2b-256 66ee888fa5d5731ad8b4d66725243998cf11386df77dfd4f1f2a4d845ebcffeb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page