Skip to content

An open source alternative to Tableau. Embeddable visual analytic

chore: vercel analytic in buildapp

ObservedObserver7861ba1de0cc
diff --git a/packages/graphic-walker/index.html b/packages/graphic-walker/index.html
index ecf96d10..f201fa10 100644
--- a/packages/graphic-walker/index.html
+++ b/packages/graphic-walker/index.html
@@ -5,16 +5,10 @@
<link rel="icon" type="image/svg+xml" href="/src/assets/kanaries.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Graphic Walker</title>
- <meta name="description" content="A visual EDA app">
+ <meta name="description" content="An easy to use Exploratory Data Analysis tool">
</head>
<body>
<div id="root"></div>
- <!--
- This is a demo template file which will not be included in the publish pack.
- DO NOT INJECT THIS SCRIPT OR IMPORT @vercel/analytics IN ANY OTHER FILES!
- @see https://vercel.com/docs/concepts/analytics/audiences/quickstart#add-the-%60analytics%60-component-to-your-app
- -->
- <script defer src="/_vercel/insights/script.js"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
diff --git a/packages/graphic-walker/package.json b/packages/graphic-walker/package.json
index 229d5138..f608d491 100644
--- a/packages/graphic-walker/package.json
+++ b/packages/graphic-walker/package.json
@@ -62,6 +62,7 @@
"@types/react-dom": "^17.x",
"@types/styled-components": "^5.1.26",
"@types/uuid": "^8.3.1",
+ "@vercel/analytics": "^0.1.8",
"@vitejs/plugin-react-refresh": "^1.3.6",
"styled-components": "^5.3.6",
"typescript": "^4.3.2",
diff --git a/packages/graphic-walker/src/main.tsx b/packages/graphic-walker/src/main.tsx
index 04758a0d..ec0dcb7e 100644
--- a/packages/graphic-walker/src/main.tsx
+++ b/packages/graphic-walker/src/main.tsx
@@ -2,6 +2,10 @@ import React from 'react'
import ReactDOM from 'react-dom'
import { GraphicWalker } from './index'
+import { inject } from '@vercel/analytics';
+
+inject();
+
ReactDOM.render(
<React.StrictMode>
<GraphicWalker />
diff --git a/yarn.lock b/yarn.lock
index e5ff1ef1..8294fb61 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -560,6 +560,11 @@
resolved "https://registry.npmmirror.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
+"@vercel/analytics@^0.1.8":
+ version "0.1.8"
+ resolved "https://registry.npmmirror.com/@vercel/analytics/-/analytics-0.1.8.tgz#71f1f8c7bb98ac0c5c47eb3fb8ccbe8141b9fe47"
+ integrity sha512-PQrOI8BJ9qUiVJuQfnKiJd15eDjDJH9TBKsNeMrtelT4NAk7d9mBVz1CoZkvoFnHQ0OW7Xnqmr1F2nScfAnznQ==
+
"@vitejs/plugin-react-refresh@^1.3.6":
version "1.3.6"
resolved "https://registry.npmmirror.com/@vitejs/plugin-react-refresh/-/plugin-react-refresh-1.3.6.tgz#19818392db01e81746cfeb04e096ab3010e79fe3"