text: import React, { Component } from 'react';
  import { initGA, logPageView } from '../../helpers/analytics';
  
  export default class Layout extends Component {
    componentDidMount() {
      if (!window.GA_INITIALIZED) {
        initGA();
        window.GA_INITIALIZED = true;
      }
      logPageView();
    }
  
    render() {
      return <div>{this.props.children}</div>;
    }
  }
  