Skip to content

Commit

Permalink
Merge pull request #82 from etchteam/feature/umami
Browse files Browse the repository at this point in the history
docs: add umami analytics
  • Loading branch information
gavmck authored Sep 26, 2024
2 parents 79a8e8e + 88a6994 commit 64b31ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ jobs:
VALIDATE_JSX: false
VALIDATE_TSX: false
VALIDATE_TYPESCRIPT_STANDARD: false
FILTER_REGEX_EXCLUDE: preview-head.html
10 changes: 10 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ const config: StorybookConfig = {
base,
};
},
previewHead: (head) => (`
${head}
${process.env.NODE_ENV === 'production' ? `
<script
defer
src="https://eu.umami.is/script.js"
data-website-id="6d365089-9b92-45bd-93ae-db50a14e487b"
></script>
` : ''}
`),
};

export default config;

0 comments on commit 64b31ba

Please sign in to comment.