Skip to content

Commit

Permalink
Merge pull request #49 from krowter/feat/analytics
Browse files Browse the repository at this point in the history
feat: enable analytics
  • Loading branch information
elianiva authored Feb 4, 2024
2 parents 33f98ac + 0c3e39a commit c006073
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ const { title, keywords, summary, url } = Astro.props;
<script>
import "../scripts/chat-box-scroll-restoration";
</script>
<script
async
src="https://analytics.teknologiumum.com/script.js"
data-website-id="c58a8a55-4992-49d3-96ad-04e3f4c39ac8"></script>
</head>
<body data-is-pathname-null={pathname === "/"}>
<div class="container">
Expand Down
4 changes: 2 additions & 2 deletions src/components/chat-box/ChatBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function ChatBox(props: ChatBoxProps) {
</p>
<p class="placeholder-content">
Ingin kontribusi wejangan dan ilmu? Kunjungi{" "}
<a class="url" href="https://github.com/teknologi-umum/tgif">
<a class="url" id="tgif-github" href="https://github.com/teknologi-umum/tgif" data-umami-event="TGIF Github Link">
teknologi-umum/tgif
</a>
</p>
Expand Down Expand Up @@ -50,7 +50,7 @@ export function ChatBox(props: ChatBoxProps) {
window.location.replace("/");
}}
>
<HomeIcon />
<HomeIcon />
</button>
</a>
</div>
Expand Down

0 comments on commit c006073

Please sign in to comment.