Skip to content

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

} = 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