Skip to content

Commit

Permalink
Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslh committed Jun 4, 2024
1 parent f53e860 commit be9c630
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
7 changes: 0 additions & 7 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"imagemin-webp": "^8.0.0",
"isbot": "^5.1.6",
"lodash-es": "^4.17.21",
"logrocket": "^8.1.0",
"markdown-json": "^1.6.1",
"npm-check-updates": "^16.14.20",
"postcss-html": "^1.6.0",
Expand Down
19 changes: 14 additions & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
export let data: { themeFromSession: SiteTheme };
import { onMount } from "svelte";
import LogRocket from "logrocket";
import { themeStore } from "$lib/stores";
import { browser } from "$app/environment";
Expand Down Expand Up @@ -38,10 +37,6 @@
`,
);
}
if (browser && import.meta.env.VITE_ENV === "production") {
LogRocket.init("personal-rpsz0/rosshillca");
}
});
$: selectedTheme = browser ? $themeStore : data.themeFromSession;
Expand Down Expand Up @@ -190,6 +185,20 @@
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#20232e" />
<meta name="msapplication-TileColor" content="#20232e" />
<meta name="theme-color" content="#20232e" />

<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-ZTGKQ6SJEW"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-ZTGKQ6SJEW");
</script>
</svelte:head>

<style lang="scss">
Expand Down

0 comments on commit be9c630

Please sign in to comment.