From 85439ced56f3e3d470a5f37d8a56ee7bb5fc30e8 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 2 Aug 2019 17:52:56 +0300 Subject: [PATCH] added google analytics --- pages/_document.jsx | 2 ++ src/components/GAnalytics.jsx | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/components/GAnalytics.jsx diff --git a/pages/_document.jsx b/pages/_document.jsx index 09240b4c..d861542b 100644 --- a/pages/_document.jsx +++ b/pages/_document.jsx @@ -1,6 +1,7 @@ import React from 'react' import Document, { Html, Head, Main, NextScript } from 'next/document' import { YMetrika } from '../src/components/YMetrika' +import { GAnalytics } from '../src/components/GAnalytics' export default class MyDocument extends Document { // static async getInitialProps(ctx) { @@ -56,6 +57,7 @@ export default class MyDocument extends Document {