From 285e67b78cc694f10fb7cfed18e3366bb5da5a98 Mon Sep 17 00:00:00 2001 From: Ryan Parag Date: Tue, 17 Mar 2020 10:03:32 -0400 Subject: [PATCH] add analytics --- gatsby-config.js | 8 +++++++- package.json | 2 +- src/pages/index.js | 2 +- yarn.lock | 22 +++++++++++++++++----- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index f3eb18e..7212c4f 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -16,6 +16,12 @@ module.exports = { name: `blog`, }, }, + { + resolve: `gatsby-plugin-google-analytics`, + options: { + trackingId: "UA-157497184-1", + }, + }, { resolve: `gatsby-source-filesystem`, options: { @@ -83,4 +89,4 @@ module.exports = { // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, ], -} +} \ No newline at end of file diff --git a/package.json b/package.json index a71af24..6857cac 100755 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "gatsby": "^2.18.12", "gatsby-image": "^2.2.34", "gatsby-plugin-feed": "^2.3.23", - "gatsby-plugin-google-analytics": "^2.1.29", + "gatsby-plugin-google-analytics": "^2.1.38", "gatsby-plugin-manifest": "^2.2.31", "gatsby-plugin-offline": "^3.0.27", "gatsby-plugin-react-helmet": "^3.1.16", diff --git a/src/pages/index.js b/src/pages/index.js index 37a107d..882951a 100755 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -18,7 +18,7 @@ class BlogIndex extends React.Component { return ( - +
diff --git a/yarn.lock b/yarn.lock index 4a604c0..9ced5f9 100755 --- a/yarn.lock +++ b/yarn.lock @@ -765,6 +765,13 @@ dependencies: regenerator-runtime "^0.13.2" +"@babel/runtime@^7.8.7": + version "7.8.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d" + integrity sha512-+AATMUFppJDw6aiR5NVPHqIQBlV/Pj8wY/EZH+lmvRdUo9xBaz/rF3alAwFJQavvKfeOlPE7oaaDHVbcySbCsg== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/template@^7.7.4": version "7.7.4" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.4.tgz#428a7d9eecffe27deac0a98e23bf8e3675d2a77b" @@ -5429,12 +5436,12 @@ gatsby-plugin-feed@^2.3.23: lodash.merge "^4.6.2" rss "^1.2.2" -gatsby-plugin-google-analytics@^2.1.29: - version "2.1.29" - resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.1.29.tgz#d24caabf2a89abd95f1620434ff784088bac38f2" - integrity sha512-vRMmXyam7LUwD+xdWCLQTbe5pT8FOX3vcIJdwckY/c3x3/GFIkx9bRJ1/N8z9x9dAci3g0HoTQZ6BkcqcNhzkA== +gatsby-plugin-google-analytics@^2.1.38: + version "2.1.38" + resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.1.38.tgz#37907b2000abf19dcba06da31ccca99abf3fbbc2" + integrity sha512-Ce5E1qoD1jQkDcQIm4qPmu0L66ujqwHua0Vy+UC4rUw2GdIn5dunpBklgYaDFF2DG1gDyMwJ4v+XElLaltXcDQ== dependencies: - "@babel/runtime" "^7.7.4" + "@babel/runtime" "^7.8.7" gatsby-plugin-manifest@^2.2.31: version "2.2.31" @@ -10515,6 +10522,11 @@ regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.3: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== +regenerator-runtime@^0.13.4: + version "0.13.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" + integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA== + regenerator-transform@^0.14.0: version "0.14.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb"