Add gtag and fix icons height

This commit is contained in:
Kamran Ahmed
2019-11-08 01:32:01 +04:00
parent 565da5548b
commit 21b715dc57
10 changed files with 76 additions and 37 deletions
+16 -6
View File
@@ -1,11 +1,21 @@
import React from 'react';
import Helmet from 'components/helmet';
import './global.scss';
import { firePageView } from '../../lib/gtag';
const DefaultLayout = (props) => (
<div>
<Helmet />
{ props.children }
</div>
);
class DefaultLayout extends React.Component {
componentDidMount() {
firePageView(window.location.pathname);
}
render() {
return (
<div>
<Helmet />
{ this.props.children }
</div>
);
}
}
export default DefaultLayout;