Skip to content

Commit

Permalink
feat: add plausible analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Dec 31, 2023
1 parent e701f1d commit 0ec50db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layouts/default/Document.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Script } from 'gatsby';
import { Fragment } from 'react';

type DocumentProps = {
Expand All @@ -9,6 +10,8 @@ export function Document({ metaData }: DocumentProps) {
<Fragment>
<title key="pageTitle">{metaData.title}</title>
<meta key="pageDescription" name="description" content={metaData.description} />
<meta name="referrer" content="no-referrer-when-downgrade" />
<Script id="analytics" defer data-domain="openscript.ch" src="https://analytics.obin.ch/js/script.js" />
</Fragment>
);
}

0 comments on commit 0ec50db

Please sign in to comment.