import React from 'react'
import ReactDOM from 'react-dom'
import 'normalize.css'

import {Analytics} from './lib/analytics'
import {Header} from './header'
import {Drone} from './lib/drone'
import webfont from './lib/webfont'
import styles from './styles'

(() => {
  webfont({
    families: ['Cinzel Decorative:400'],
    text: 'Langri-Sha'
  })

  const container = document.createElement('div')
  container.className = styles.container
  document.body.appendChild(container)

  ReactDOM.render((
    <div>
      <Header />
      <Analytics id={'UA-86127521-1'} />
      <Drone />
    </div>
  ), container)
})()

import React from 'react'
import ReactDOM from 'react-dom'
import 'normalize.css'

import {Analytics} from './lib/analytics'
import {Header} from './header'
import {Drone} from './lib/drone'
import webfont from './lib/webfont'
import styles from './styles'

(() => {
  webfont({
    families: ['Cinzel Decorative:400'],
    text: 'Langri-Sha'
  })

  const container = document.createElement('div')
  container.className = styles.container
  document.body.appendChild(container)

  try {
    ReactDOM.render((
      <div>
        <Header />
        <Analytics id={'UA-86127521-1'} />
        <Drone />
      </div>
    ), container)
  } catch (err) {
    ga('send', 'exception', {
      exDescription: err.message,
      exFatal: false
    })
  }
})()

Add exception tracking for initial render
feat(analytics): Add exception tracking for initial render

