Skip to content

Commit

Permalink
Track link variants property when field is added
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Dec 18, 2024
1 parent b0e32d8 commit 5753a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/manager/src/managers/telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ type FieldAddedSegmentEvent = SegmentEvent<
contentType: "page type" | "custom type" | "slice";
allowText?: boolean;
repeat?: boolean;
variants?: string[];
}
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function trackFieldAdded(args: TrackFieldAddedArgs) {
...(field.type === "Link" && {
allowText: field.config?.allowText,
repeat: field.config?.repeat,
variants: field.config?.variants,
}),
});
}

0 comments on commit 5753a0e

Please sign in to comment.