Skip to content

Commit c2cf81c

Browse files
committed
feat: add plausible analytics
1 parent b6d9ffa commit c2cf81c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/layouts/default/Document.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Script } from 'gatsby';
12
import { Fragment } from 'react';
23

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

0 commit comments

Comments
 (0)