Skip to content

Commit 2fe9c08

Browse files
feat(Tracking): add is_ugc attribute to tracking types
### Overview adds `is_ugc` attribute to click, visit, and impression event tracking types (for use in portal-app) ### PR Checklist - [x] Related to JIRA ticket: [REACH-1686](https://codecademy.atlassian.net/browse/REACH-1686) - [ ] I have run this code to verify it works - [ ] This PR includes unit tests for the code change <!-- Merging your changes 1. Follow the [PR Title Guide](https://github.com/Codecademy/client-modules#pr-title-guide), the title (which becomes the commit message) determines the version bump for the packages you changed. 2. Wrap the text describing your change in more detail in the "CHANGELOG-DESCRIPTION" comment tags above, this is what will show up in the changelog! 3. DO NOT MERGE MANUALLY! When you are ready to merge and publish your changes, add the "Ship It" label to your Pull Request. This will trigger the merge process as long as all checks have completed, if the checks haven't completed the branch will be merged when they all pass. **IMPORTANT:** If your PR contains breaking changes, please remember to follow the instructions for breaking changes! -->
1 parent f75dfa9 commit 2fe9c08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/tracking/src/events/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export type UserClickData = UserSharedData & {
183183
assessment_id?: string;
184184
container_slugs?: string[];
185185
search_id?: string;
186+
is_ugc?: boolean;
186187
};
187188

188189
/**
@@ -216,6 +217,7 @@ export type UserVisitData = UserSharedData & {
216217
story_slug?: string;
217218
unit?: string;
218219
lesson?: string;
220+
is_ugc?: boolean;
219221
};
220222

221223
export type UserImpressionData = {
@@ -227,6 +229,7 @@ export type UserImpressionData = {
227229
track_slug?: string;
228230
module_slug?: string;
229231
source_codebase?: string;
232+
is_ugc?: boolean;
230233
};
231234

232235
export type EventAnswerData = BaseEventData & {

0 commit comments

Comments
 (0)