Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
dergachevm committed Oct 4, 2024
1 parent 21a6077 commit aa4f764
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/layouts/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@ const Layout = ({ children, title, bodyClass }) => {

<link href={`/assets/styles/styles.css?v=${+new Date()}`} rel="stylesheet" />
<script src={`/assets/js/head.js?v=${+new Date()}`}></script>
<script __html={`
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KMZ6M22L');
`}></script>
</head>
<body data-elt="body" class={bodyClass}>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KMZ6M22L" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div className="loader"></div>
<SvgIcons />
{children}
Expand Down

0 comments on commit aa4f764

Please sign in to comment.