Skip to content

Commit fd1dd3b

Browse files
chore: update google analytics
1 parent 7b2bedc commit fd1dd3b

File tree

1 file changed

+61
-31
lines changed

1 file changed

+61
-31
lines changed

public/index.html

Lines changed: 61 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
4-
<head>
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="theme-color" content="#000000">
8-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
9-
<meta name="description" content="A very simple but useful Markdown Previewer and Markdown Editor with CodeMirror">
10-
<meta name="keywords" content="markdown, previewer, markdown previewer, codemirror, markdown editor, editor">
11-
<!--
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
8+
/>
9+
<meta name="theme-color" content="#000000" />
10+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
11+
<meta
12+
name="description"
13+
content="A very simple but useful Markdown Previewer and Markdown Editor with CodeMirror"
14+
/>
15+
<meta
16+
name="keywords"
17+
content="markdown, previewer, markdown previewer, codemirror, markdown editor, editor"
18+
/>
19+
<!--
1220
manifest.json provides metadata used when your web app is added to the
1321
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1422
-->
15-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
16-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
17-
<!--
23+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
24+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
25+
<!--
1826
Notice the use of %PUBLIC_URL% in the tags above.
1927
It will be replaced with the URL of the `public` folder during the build.
2028
Only files inside the `public` folder can be referenced from the HTML.
@@ -23,21 +31,44 @@
2331
work correctly both with client-side routing and a non-root public URL.
2432
Learn how to configure a non-root public URL by running `npm run build`.
2533
-->
26-
<title>Markdown Editor by Lam Pham</title>
34+
<title>Markdown Editor by Lam Pham</title>
35+
36+
<link
37+
href="https://use.fontawesome.com/releases/v5.2.0/css/solid.css"
38+
rel="stylesheet"
39+
integrity="sha384-wnAC7ln+XN0UKdcPvJvtqIH3jOjs9pnKnq9qX68ImXvOGz2JuFoEiCjT8jyZQX2z"
40+
crossorigin="anonymous"
41+
/>
42+
<link
43+
href="https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css"
44+
rel="stylesheet"
45+
integrity="sha384-HbmWTHay9psM8qyzEKPc8odH4DsOuzdejtnr+OFtDmOcIVnhgReQ4GZBH7uwcjf6"
46+
crossorigin="anonymous"
47+
/>
48+
<link
49+
rel="stylesheet"
50+
href="%PUBLIC_URL%/lib/codemirror-5.39.2/lib/codemirror.css"
51+
/>
2752

28-
<link href="https://use.fontawesome.com/releases/v5.2.0/css/solid.css" rel="stylesheet" integrity="sha384-wnAC7ln+XN0UKdcPvJvtqIH3jOjs9pnKnq9qX68ImXvOGz2JuFoEiCjT8jyZQX2z"
29-
crossorigin="anonymous">
30-
<link href="https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css" rel="stylesheet" integrity="sha384-HbmWTHay9psM8qyzEKPc8odH4DsOuzdejtnr+OFtDmOcIVnhgReQ4GZBH7uwcjf6"
31-
crossorigin="anonymous">
32-
<link rel="stylesheet" href="%PUBLIC_URL%/lib/codemirror-5.39.2/lib/codemirror.css">
33-
</head>
53+
<!-- Global site tag (gtag.js) - Google Analytics -->
54+
<script
55+
async
56+
src="https://www.googletagmanager.com/gtag/js?id=UA-96543695-6"
57+
></script>
58+
<script>
59+
window.dataLayer = window.dataLayer || [];
60+
function gtag() {
61+
dataLayer.push(arguments);
62+
}
63+
gtag("js", new Date());
64+
gtag("config", "UA-96543695-6");
65+
</script>
66+
</head>
3467

35-
<body>
36-
<noscript>
37-
You need to enable JavaScript to run this app.
38-
</noscript>
39-
<div id="root"></div>
40-
<!--
68+
<body>
69+
<noscript> You need to enable JavaScript to run this app. </noscript>
70+
<div id="root"></div>
71+
<!--
4172
This HTML file is a template.
4273
If you open it directly in the browser, you will see an empty page.
4374
@@ -47,9 +78,8 @@
4778
To begin the development, run `npm start` or `yarn start`.
4879
To create a production bundle, use `npm run build` or `yarn build`.
4980
-->
50-
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.4.0/marked.min.js"></script>
51-
<script src="%PUBLIC_URL%/lib/codemirror-5.39.2/lib/codemirror.js"></script>
52-
<script src="%PUBLIC_URL%/lib/codemirror-5.39.2/mode/markdown/markdown.js"></script>
53-
</body>
54-
55-
</html>
81+
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.4.0/marked.min.js"></script>
82+
<script src="%PUBLIC_URL%/lib/codemirror-5.39.2/lib/codemirror.js"></script>
83+
<script src="%PUBLIC_URL%/lib/codemirror-5.39.2/mode/markdown/markdown.js"></script>
84+
</body>
85+
</html>

0 commit comments

Comments
 (0)