text: /**
   * React Static Boilerplate
   * https://github.com/koistya/react-static-boilerplate
   * Copyright (c) Konstantin Tarkus (@koistya) | MIT license
   */
  
  import React from 'react';
  import {googleAnalyticsId} from '../../config';
  
  const trackingCode = {
    __html: `(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=` +
    `function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;` +
    `e=o.createElement(i);r=o.getElementsByTagName(i)[0];` +
    `e.src='https://www.google-analytics.com/analytics.js';` +
    `r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));` +
    `ga('create','${googleAnalyticsId}','auto');`,
  };
  
  
  function GoogleAnalytics() {
    return <script dangerouslySetInnerHTML={trackingCode}/>;
  }
  
  export default GoogleAnalytics;
  