Skip to content

Commit

Permalink
docs: add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Aug 10, 2024
1 parent e4c4ea1 commit 146f1f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/blocks/analytics/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { component$ } from '@builder.io/qwik'

export let Analytics = component$(() => (
<script
data-website-id="c98b8c06-7c85-4082-9acc-b467b5b0fd0c"
src="https://analytics.azat.io/script.js"
defer
></script>
))
2 changes: 2 additions & 0 deletions docs/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import { isDev } from '@builder.io/qwik/build'
import { component$ } from '@builder.io/qwik'

import { Analytics } from './blocks/analytics'
import { Head } from './blocks/head'
import './styles/spaces.css'
import './styles/colors.css'
Expand All @@ -18,6 +19,7 @@ export default component$(() => (
<body lang="en-us">
<RouterOutlet />
{!isDev && <ServiceWorkerRegister />}
{!isDev && <Analytics />}
</body>
</QwikCityProvider>
))

0 comments on commit 146f1f9

Please sign in to comment.