We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02eb38 commit 7397b43Copy full SHA for 7397b43
src/components/QuickStartPromptButton.jsx
@@ -48,6 +48,15 @@ export default function QuickStartPromptButton({ prompt = PROMPT }) {
48
}, []);
49
50
const handleCopy = async () => {
51
+ if (window.analytics) {
52
+ console.log('Copying prompt', window.analytics);
53
+ window.analytics.track('Clicked', {
54
+ app: 'docs',
55
+ button_text: 'Copy prompt',
56
+ element: 'quick-start-prompt-button.copyButton',
57
+ });
58
+ }
59
+
60
try {
61
await navigator.clipboard.writeText(prompt);
62
0 commit comments