Skip to content

Commit d3ec030

Browse files
committed
added event tracker
1 parent e52a1c8 commit d3ec030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/CodeBlock.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export function CodeBlock({ className, children, ...props }: ICodeBlock) {
3737
{...props}
3838
>
3939
<Button
40+
id="cody-copy-button"
41+
data-umami-event="copy-code-button"
4042
disabled={hasCopied}
4143
className="absolute top-4 right-4 z-10"
4244
size="sm"

0 commit comments

Comments
 (0)