diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-08-26 12:34:06 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-08-26 12:34:06 +0800 |
commit | 758486b11e0be82fffeb979f061cf3b2d7bac562 (patch) | |
tree | 0df1c3a2985aedb83c4d5897093e50f0bca7e035 | |
parent | cd6881e669c6c4de7b0b2f11f4d47a95f0681097 (diff) | |
download | tangerine-official-website-758486b11e0be82fffeb979f061cf3b2d7bac562.tar.gz tangerine-official-website-758486b11e0be82fffeb979f061cf3b2d7bac562.tar.zst tangerine-official-website-758486b11e0be82fffeb979f061cf3b2d7bac562.zip |
add ga
-rw-r--r-- | gatsby-config.js | 7 | ||||
-rw-r--r-- | package.json | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gatsby-config.js b/gatsby-config.js index 788b8da..249928b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -39,6 +39,13 @@ module.exports = { icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. }, }, + { + resolve: `gatsby-plugin-google-analytics`, + options: { + trackingId: "UA-143831791-2", + head: true, + }, + }, // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, diff --git a/package.json b/package.json index 65de4b1..1998c42 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "gatsby": "^2.10.0", "gatsby-background-image": "^0.7.3", "gatsby-image": "^2.2.1", + "gatsby-plugin-google-analytics": "^2.1.11", "gatsby-plugin-manifest": "^2.2.0", "gatsby-plugin-offline": "^2.2.0", "gatsby-plugin-react-helmet": "^3.1.0", |