import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import flush from 'styled-jsx/server' import { GA_TRACKING_ID } from '../lib/gtag' export default class extends Document { static getInitialProps ({ renderPage }) { const { html, head, errorHtml, chunks } = renderPage() const styles = flush() return { html, head, errorHtml, chunks, styles } } render () { return (
{/* Global Site Tag (gtag.js) - Google Analytics */}