Skip to content

Commit

Permalink
add fathom to blog and cli-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenVoich committed Sep 13, 2024
1 parent a2dc3ec commit e97f80b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blog/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ const config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
fathomAnalytics: {
siteId: 'THOISMFA',
},
}),

plugins: [
'docusaurus-plugin-fathom',
],
};

export default config;
10 changes: 10 additions & 0 deletions blog/package-lock.json

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

1 change: 1 addition & 0 deletions blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docusaurus/preset-classic": "3.4.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-fathom": "^1.2.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down
4 changes: 4 additions & 0 deletions cli-releases/frontend/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>

<!-- Fathom - beautiful, simple website analytics -->
<script src="https://cdn.usefathom.com/script.js" data-spa="auto" data-site="THOISMFA" defer></script>
<!-- / Fathom -->
</html>

<style>
Expand Down

0 comments on commit e97f80b

Please sign in to comment.