Skip to content

Commit

Permalink
Added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Brettm12345 committed May 28, 2020
1 parent 92cd6c1 commit 280534d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/components/seo/seo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { graphql, useStaticQuery } from 'gatsby'
import PropTypes from 'prop-types'
import React from 'react'
import Helmet from 'react-helmet'
import { graphql, useStaticQuery } from 'gatsby';
import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';

function SEO({ description, lang, meta, keywords, title }) {
const { site } = useStaticQuery(
Expand Down Expand Up @@ -74,7 +74,18 @@ function SEO({ description, lang, meta, keywords, title }) {
: []
)
.concat(meta)}
/>
>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=AW-863663114"
></script>
<script>
{`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-863663114');`}
</script>
</Helmet>
);
}

Expand Down

0 comments on commit 280534d

Please sign in to comment.