-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send identify events to Segment before page events from ecommerce #1121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 1 nit.
if (this.options.courseModel.get('courseId')) { | ||
return this.buildCourseProperties(); | ||
pageData= this.buildCourseProperties(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: missing space between pageData
and =
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit accepted
# ANALYTICS | ||
# Specify a key to emit events to the corresponding Segment project. `None` disables tracking. | ||
# See: https://segment.com/docs/libraries/python/ | ||
SEGMENT_KEY = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is unused, it should also be removed from edx/configuration; you may want to consult with Devops to see if any secure overrides need to be cleaned up.
Related: it's probably worth documenting how this is meant to be set up now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, thanks @renzo for the suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
103d505
to
d170c28
Compare
@AlasdairSwan please re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
81f8b06
to
5865f1c
Compare
Remove the SEGMENT_KEY from settings, this value is now set in Django admin and the value existing in settings can lead to developer confusion and frustration (ask me how I know this)
ECOM-6650 Calling the logging of the user to segment before calling the tracking function, so events are attributed to the correct user.
5865f1c
to
3527d4a
Compare
ECOM-6650
Calling the logging of the user to segment before calling the tracking function, so events are attributed to the correct user. Also, small cleanup of settings file.
@edx/ecommerce for review