Skip to content

Commit 125cbd3

Browse files
committed
chore: track copy
1 parent bd86242 commit 125cbd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/demo/CodeGen.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import javascript from "highlight.js/lib/languages/javascript";
1515
import typescript from "highlight.js/lib/languages/typescript";
1616
import hljsVuePlugin from "@highlightjs/vue-plugin";
1717
import { initialize, transform } from "esbuild-wasm";
18+
import va from "@vercel/analytics";
1819
1920
import { getImportsFromOption } from "./utils/codegen";
2021
@@ -136,6 +137,7 @@ const messageOpen = ref(false);
136137
let messageTimer;
137138
138139
function copy() {
140+
va.track("copy-code");
139141
clearTimeout(messageTimer);
140142
141143
navigator.clipboard.writeText(importCode.value);

0 commit comments

Comments
 (0)