diff --git a/cms/envs/common.py b/cms/envs/common.py index f2b1ff5d0e..ffc19bb096 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -815,6 +815,10 @@ TRACKING_BACKENDS = { TRACKING_IGNORE_URL_PATTERNS = [r'^/event', r'^/login', r'^/heartbeat'] EVENT_TRACKING_ENABLED = True + +# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted +# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so +# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs. EVENT_TRACKING_BACKENDS = { '0_tracking_logs': { 'ENGINE': 'eventtracking.backends.routing.RoutingBackend', diff --git a/lms/envs/common.py b/lms/envs/common.py index d63d4d0d49..8171182cdc 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -629,6 +629,10 @@ TRACKING_BACKENDS = { TRACKING_IGNORE_URL_PATTERNS = [r'^/event', r'^/login', r'^/heartbeat', r'^/segmentio/event', r'^/performance'] EVENT_TRACKING_ENABLED = True + +# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted +# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so +# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs. EVENT_TRACKING_BACKENDS = { '0_tracking_logs': { 'ENGINE': 'eventtracking.backends.routing.RoutingBackend',