Skip to content

Commit d2a5ce5

Browse files
committed
Add policy and service links to README, add GA, and mapbox token
Signed-off-by: Shan He <[email protected]>
1 parent d600da8 commit d2a5ce5

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,8 @@ Deploy local app to uber.github.io, this will be the app that Tableau extension
8585
```sh
8686
npm run deploy
8787
```
88+
89+
## Links
90+
[kepler.gl Support Policy](https://kepler.gl/policy)
91+
[Privacy Policy](https://lfprojects.org/policies/privacy-policy/)
92+
[Term of Use](https://lfprojects.org/policies/terms-of-use/)

public/index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">
7+
<title>kepler.gl for Tableau</title>
8+
79
<!--
810
manifest.json provides metadata used when your web app is added to the
911
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
@@ -20,11 +22,22 @@
2022
Learn how to configure a non-root public URL by running `npm run build`.
2123
-->
2224
<link href="https://d1a3f4spazzrp4.cloudfront.net/uber-fonts/4.0.0/superfine.css" rel="stylesheet">
23-
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.0/mapbox-gl.css" rel="stylesheet">
25+
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css" rel="stylesheet">
2426
<style type="text/css">
2527
body {margin: 0; padding: 0; overflow: hidden;}
2628
</style>
27-
<title>React App</title>
29+
30+
<!-- Google Analytics -->
31+
<!-- Global site tag (gtag.js) - Google Analytics -->
32+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-64694404-19"></script>
33+
<script>
34+
window.dataLayer = window.dataLayer || [];
35+
function gtag(){dataLayer.push(arguments);}
36+
gtag('js', new Date());
37+
gtag('config', 'UA-64694404-19', {
38+
page_path: location.pathname + location.search + location.hash
39+
});
40+
</script>
2841
</head>
2942
<body>
3043
<noscript>

src/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ import dbLogo from './assets/dblogo.png';
6363
import ssLogo from './assets/sslogo.jpg';
6464
import kepLogo from './assets/kepler.gl-logo.png';
6565

66+
const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoidWJlcmRhdGEiLCJhIjoiY2p2OGVvejQwMDJxZzRma2dvdWQ2OTQwcSJ9.VbuIamTa_JayuD2yr5tjaA';
67+
6668
// begin constants to move to another file later
6769
// material ui styles
6870
const styles = theme => ({
@@ -647,7 +649,7 @@ class App extends Component {
647649

648650
// default to uber's Kepler key that they requested if user does not enter
649651
this.setState({
650-
tableauKey: 'pk.eyJ1IjoidWJlcmRhdGEiLCJhIjoiY2p2OGVvejQwMDJxZzRma2dvdWQ2OTQwcSJ9.VbuIamTa_JayuD2yr5tjaA',
652+
tableauKey: MAPBOX_ACCESS_TOKEN,
651653
isLoading: false,
652654
height: window.innerHeight,
653655
width: window.innerWidth,

0 commit comments

Comments
 (0)