Skip to content

Commit

Permalink
[#161] ๐Ÿ”Š GA script ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
inhyuck committed Aug 28, 2021
1 parent efd0170 commit ffa0fc6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ export default class CustomDocument extends Document {
return (
<Html lang="ko">
<Head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L9C81HMX88"></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-L9C81HMX88');
`,
}}></script>
<meta charSet="utf-8" />
<link
rel="preload"
Expand Down

0 comments on commit ffa0fc6

Please sign in to comment.