import React from 'react';
import Helmet from 'components/helmet';
import './global.scss';
import { firePageView } from '../../lib/gtag';

class DefaultLayout extends React.Component {
  componentDidMount() {
    firePageView(window.location.pathname);
  }

  render() {
    return (
      <div>
        <Helmet />
        { this.props.children }
      </div>
    );
  }
}

export default DefaultLayout;
