Skip to content

Commit

Permalink
feat: google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
malezjaa committed Jan 2, 2024
1 parent f1955cb commit 6e1ab91
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions apps/docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ export default defineConfig({
href: "/eddies/logo.png",
},
],
[
"script",
{
src: "https://www.googletagmanager.com/gtag/js?id=G-FKZEV9Q6M2",
},
],
[
"script",
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-FKZEV9Q6M2');",
],
],
themeConfig: {
logo: "/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Page() {
const [theme, setTheme] = useState<"dark" | "light">("dark");
return (
<div className="m-5">
<Editor onChange={(editor) => console.log(editor.getJSON())} />
<Editor onChange={(editor) => console.log(editor)} />

<button onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>
Toggle Theme
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@tiptap/react": "^2.1.13",
"eddies": "0.0.5",
"eddies": "0.0.6",
"lucide-react": "^0.303.0",
"next": "^14.0.3",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e1ab91

Please sign in to comment.