Skip to content

Commit 148c0af

Browse files
committed
Move analytics injection code
1 parent fb6f6f0 commit 148c0af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/html.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33

4+
import { inject } from '@vercel/analytics'
5+
6+
inject()
7+
48
export default class HTML extends React.Component {
59
render() {
610
return (

src/layout/index.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { rhythm } from '../utils/typography'
88

99
import './index.scss'
1010

11-
import { inject } from '@vercel/analytics'
12-
13-
inject()
14-
1511
export const Layout = ({ location, title, children }) => {
1612
const rootPath = `${__PATH_PREFIX__}/`
1713

0 commit comments

Comments
 (0)