From 9f4dd67156c5bc94bc9d074d4396f2f726b24138 Mon Sep 17 00:00:00 2001 From: Sergejs Kozinecs Date: Tue, 22 Nov 2022 13:58:13 +0200 Subject: [PATCH] gtag workaround --- gatsby-config.js | 12 ++++++------ src/pages/index.jsx | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index bcf9255..3f408e8 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -7,12 +7,12 @@ module.exports = { plugins: [ "gatsby-plugin-sass", "gatsby-plugin-image", - { - resolve: "gatsby-plugin-google-analytics", - options: { - trackingId: "G-8M9CZ79T4L", - }, - }, + // { + // resolve: "gatsby-plugin-google-analytics", + // options: { + // trackingId: "G-8M9CZ79T4L", + // }, + // }, "gatsby-plugin-react-helmet", "gatsby-plugin-sitemap", { diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 306ee8f..b181d40 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,4 +1,5 @@ import * as React from "react"; +import { Script } from "gatsby"; import { Seo } from "../components/seo"; import "../assets/stylesheets/style.scss"; @@ -11,4 +12,21 @@ const IndexPage = () => { export default IndexPage; -export const Head = () => ; +export const Head = () => ( + <> + ; + + + +);