Skip to content

Commit

Permalink
feat: Integrate Analytics, fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
bodobraegger committed Oct 16, 2023
1 parent 0fb6b60 commit b50d469
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { HelmetProvider } from 'react-helmet-async';
import { PageLayout, ThemeProvider } from '@primer/react'
import Header from './components/Header';
import SidebarNav from './components/SidebarNav';
import { Helmet } from 'react-helmet-async';

export type LinkT = {
title: string
Expand Down Expand Up @@ -116,6 +117,9 @@ function App() {
return (
<ThemeProvider>
<HelmetProvider>
<Helmet>
<script defer data-domain="scout-ch.github.io/thilo" src={'https://plausible.io/js/script.js'}></script>
</Helmet>
<div className='App'>
<Router basename="/">
<LinksContext.Provider value={links}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Section(props: Props) {


return <div className='content'>
<Helmet><title>{props.section['title']}</title></Helmet>
<Helmet><title>{props.section['title']}</title></Helmet>
<div id="section-title" className={classes}>
<h1>
{props.section.icon && (<img className='icon' src={props.section.icon.url} alt="icon" />)}
Expand Down

0 comments on commit b50d469

Please sign in to comment.