Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 5caf06b

Browse files
authored
Merge pull request #98 from tpucci/install-analytics
Install analytics on docs website
2 parents c012006 + b472643 commit 5caf06b

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

docs/theme/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ lang }}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="description" content="{{ description }}">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
9+
10+
<!-- Global site tag (gtag.js) - Google Analytics -->
11+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-142080175-1"></script>
12+
<script>
13+
window.dataLayer = window.dataLayer || [];
14+
function gtag() { dataLayer.push(arguments); }
15+
gtag('js', new Date());
16+
17+
gtag('config', 'UA-142080175-1');
18+
</script>
19+
20+
<title>{{ title }}</title>
21+
{{ head }}
22+
</head>
23+
24+
<body>
25+
<div id="root" />
26+
{{ footer }}
27+
</body>
28+
29+
</html>

doczrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ module.exports = {
1515
// Combine the default docz aliases with our custom aliases.
1616
config.resolve.alias = Object.assign({}, config.resolve.alias, {
1717
'react-native$': 'react-native-web',
18-
'react-gondola$': path.resolve(__dirname, 'src/index.ts'),
18+
'react-gondola$': path.resolve(__dirname, 'src/index.ts'), // eslint-disable-line
1919
});
2020
return config;
2121
},
22+
indexHtml: path.resolve(__dirname, 'docs/theme/index.html'), // eslint-disable-line
2223
};

0 commit comments

Comments
 (0)