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': {
        'endpoint': <FILL_WITH_AN_URI>,
        'token': <FILL_WITH_AN_AUTHORIZATION_TOKEN>,
    }
}

EVENT_TRACKING_BACKENDS['tracking_logs']['OPTIONS']['backends']['api'] = {
    'ENGINE': 'edx_analytics_logger.api.ApiBackend',
    'OPTIONS': {
        'endpoint': <FILL_WITH_AN_URI>,
        'token': <FILL_WITH_AN_AUTHORIZATION_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.1.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

edx_analytics_logger-1.1.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for edx-analytics-logger-1.1.4.tar.gz
Algorithm Hash digest
SHA256 7c8e33c7528fa148a1e8c501d24c99bbbf364e343ee0da31c263cac7e753f591
MD5 b95dd5bbdfa7a88e7b529dcf57ac888a
BLAKE2b-256 94fc8c4415b5ab8b6ae418f41cc30cffcbec9f087bbbc97c06ff605a0458033a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edx_analytics_logger-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17d6dff092df4c873c2d16783e8ded0a751d161ea34bf49579d617b5a33e04d1
MD5 6fd12c52aa40da230e5f77197816d1ce
BLAKE2b-256 16159dcb3fd8d62efff58c0b6993162d8a4d69dbeb9ae136c01b1f95576ebae7

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