Skip to content

Commit

Permalink
google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaByte committed Jan 23, 2024
1 parent d127b96 commit 84f3e58
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions routes/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ export default async function Layout(req: Request, ctx: FreshContext) {
href="https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700&display=swap"
rel="stylesheet"
/>

<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-TDHJL7ZT23"
>
</script>

<link rel="manifest" href="/manifest.json" />
<script src="/theme-loader.js"></script>
<script type="module" src="/sw-rg.js"></script>
Expand Down
1 change: 1 addition & 0 deletions static/google29ae9dd15993e53e.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: google29ae9dd15993e53e.html
5 changes: 5 additions & 0 deletions static/theme-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ if (storedTheme) {
} else {
localStorage.setItem("selectedTheme", "dracula");
}

window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-TDHJL7ZT23');

0 comments on commit 84f3e58

Please sign in to comment.