Skip to content

Commit

Permalink
chore: add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
vitonsky committed Jun 23, 2024
1 parent a746c53 commit 5651d5e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions site/src/components/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ export const PageLayout: FC<PropsWithChildren> = ({ children }) => {
<ChakraBaseProvider theme={theme}>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
defer
data-domain="linguister.io"
src="https://pulse2.vitonsky.net/js/script.js"
></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-NGGDLX42RQ"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-NGGDLX42RQ');
`
.replace(/\t/g, '')
.trim(),
}}
/>
</Head>
{children}
</ChakraBaseProvider>
Expand Down

0 comments on commit 5651d5e

Please sign in to comment.