Skip to content

Commit

Permalink
config: docs 사이트 GA설치
Browse files Browse the repository at this point in the history
  • Loading branch information
d0422 committed May 17, 2024
1 parent a440b2b commit 307d45b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
managerHead: (head) => `
${head}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XMN61W8NKJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XMN61W8NKJ');
</script>
`,
};
export default config;

0 comments on commit 307d45b

Please sign in to comment.