Skip to content

Commit 93daa3b

Browse files
committed
docs(fix): event tracker
1 parent 728a2ea commit 93daa3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/components/Demo/Demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface DemoProps {
1313
declare global {
1414
interface Window {
1515
pa?: {
16-
track: (args: { name: string; value?: string; unit?: string }) => void
16+
track: (args: { name: string; value?: number; unit?: string }) => void
1717
}
1818
}
1919
}
@@ -28,7 +28,7 @@ export const Demo: FC<DemoProps> = ({ children, title, description }) => {
2828

2929
const handleClick = () => {
3030
if (window.pa) {
31-
window.pa.track({ name: 'Opened demo in codesandbox', value: title })
31+
window.pa.track({ name: `Viewed ${title} in codesandbox` })
3232
}
3333
}
3434

0 commit comments

Comments
 (0)