Skip to content
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

updated sprig for dev testing using events #6750

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jpeg22
Copy link
Contributor

@jpeg22 jpeg22 commented Dec 8, 2022

Makes sprig event call when handleSubmit is run on submission page.

Copy link

@brooketopcoder brooketopcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -64,7 +69,8 @@ class SubmissionsPageContainer extends React.Component {
challenge,
track,
} = this.props;

// When the user is waiting for their submission to upload, the survey should appear
Sprig('track', 'onUploadSubmission');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use the sdk, you can do sprig.track('onUploadSubmission').

You might also consider adding the user info to the events.

https://github.com/topcoder-platform/platform-ui/blob/TCA-790_assessments/src-ts/lib/functions/survey-functions/survey.functions.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants