You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2020/11/07 18:40:58 UTC

[incubator-superset] 01/01: feat: add support for Google Analytics

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch ga
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit c7e385e57bf6fd8142eb5db8389995db19897200
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Sat Nov 7 10:40:10 2020 -0800

    feat: add support for Google Analytics
---
 docs/gatsby-config.js  | 13 +++++++++++++
 docs/package-lock.json | 19 +++++++++++++++++++
 docs/package.json      |  1 +
 3 files changed, 33 insertions(+)

diff --git a/docs/gatsby-config.js b/docs/gatsby-config.js
index 837b04f..2d42952 100644
--- a/docs/gatsby-config.js
+++ b/docs/gatsby-config.js
@@ -72,5 +72,18 @@ module.exports = {
     // To learn more, visit: https://gatsby.dev/offline
     // `gatsby-plugin-offline`,
     `gatsby-plugin-client-side-redirect`,
+		{
+      resolve: `gatsby-plugin-google-analytics`,
+      options: {
+        // The property ID; the tracking code won't be generated without it
+        trackingId: "G-133LHD3B3N",
+        // Defines where to place the tracking script - `true` in the head and `false` in the body
+        head: false,
+        // Setting this parameter is also optional
+        respectDNT: true,
+        // Avoids sending pageview hits from custom paths
+        exclude: [],
+      },
+    },
   ],
 };
diff --git a/docs/package-lock.json b/docs/package-lock.json
index 627e172..3a1e643 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -10659,6 +10659,25 @@
       "resolved": "https://registry.npmjs.org/gatsby-plugin-eslint/-/gatsby-plugin-eslint-2.0.8.tgz",
       "integrity": "sha512-vAMy37povmQJNg6ZxY78fkWR3pKwG8MNMhO3u+4vXj2MYT5avhFvHPJTAb126ZCuygf30gAWlpwbV50zP894Jw=="
     },
+    "gatsby-plugin-google-analytics": {
+      "version": "2.4.0",
+      "resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.4.0.tgz",
+      "integrity": "sha512-NKgYyICCo94OZ8SxoBEMxfRiJTRLBTYDIGkzhS+Dlzqt46T5UZARNcaPFqARw9/OdMf7FDUJ+6FSUqJoLKLNbg==",
+      "requires": {
+        "@babel/runtime": "^7.11.2",
+        "minimatch": "3.0.4"
+      },
+      "dependencies": {
+        "@babel/runtime": {
+          "version": "7.12.5",
+          "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz",
+          "integrity": "sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==",
+          "requires": {
+            "regenerator-runtime": "^0.13.4"
+          }
+        }
+      }
+    },
     "gatsby-plugin-google-fonts": {
       "version": "1.0.1",
       "resolved": "https://registry.npmjs.org/gatsby-plugin-google-fonts/-/gatsby-plugin-google-fonts-1.0.1.tgz",
diff --git a/docs/package.json b/docs/package.json
index 08e2b79..3c664a4 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -18,6 +18,7 @@
     "gatsby-plugin-antd": "^2.2.0",
     "gatsby-plugin-client-side-redirect": "^1.1.0",
     "gatsby-plugin-emotion": "^4.3.12",
+    "gatsby-plugin-google-analytics": "^2.4.0",
     "gatsby-plugin-google-fonts": "^1.0.1",
     "gatsby-plugin-manifest": "^2.4.33",
     "gatsby-plugin-offline": "^3.2.30",