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 ff15fb4 commit ddf2b65Copy full SHA for ddf2b65
src/components/PostTemplate.js
@@ -12,6 +12,8 @@ const PostTemplate = ({ content, frontmatter, slug, permalink }) => {
12
13
const handleSwitchCodeClick = useCallback(() => {
14
setCodeKey(key => (key === "code" ? "tsCode" : "code"));
15
+
16
+ analytics.track("clickTsToggle");
17
}, []);
18
19
return (
0 commit comments