Skip to content

Commit 21a4d17

Browse files
chore: update google analytics and yarn.lock
1 parent a2f1026 commit 21a4d17

File tree

2 files changed

+194
-93
lines changed

2 files changed

+194
-93
lines changed

public/index.html

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
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 name="description" content="A basic Calculator with five functions for addition, subtraction, division, multiplication and modulo operation">
9-
<meta name="keywords" content="calculator, create-react-app, react-js">
10-
<!--
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
11+
name="description"
12+
content="A basic Calculator with five functions for addition, subtraction, division, multiplication and modulo operation"
13+
/>
14+
<meta name="keywords" content="calculator, create-react-app, react-js" />
15+
<!--
1116
manifest.json provides metadata used when your web app is added to the
1217
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1318
-->
14-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
15-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
16-
<!--
19+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
20+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
21+
<!--
1722
Notice the use of %PUBLIC_URL% in the tags above.
1823
It will be replaced with the URL of the `public` folder during the build.
1924
Only files inside the `public` folder can be referenced from the HTML.
@@ -22,18 +27,34 @@
2227
work correctly both with client-side routing and a non-root public URL.
2328
Learn how to configure a non-root public URL by running `npm run build`.
2429
-->
25-
<title>Calculator by Lam Pham</title>
30+
<title>Calculator by Lam Pham</title>
31+
32+
<link
33+
rel="stylesheet"
34+
href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
35+
integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ"
36+
crossorigin="anonymous"
37+
/>
2638

27-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ"
28-
crossorigin="anonymous">
29-
</head>
39+
<!-- Global site tag (gtag.js) - Google Analytics -->
40+
<script
41+
async
42+
src="https://www.googletagmanager.com/gtag/js?id=UA-96543695-6"
43+
></script>
44+
<script>
45+
window.dataLayer = window.dataLayer || [];
46+
function gtag() {
47+
dataLayer.push(arguments);
48+
}
49+
gtag("js", new Date());
50+
gtag("config", "UA-96543695-6");
51+
</script>
52+
</head>
3053

31-
<body>
32-
<noscript>
33-
You need to enable JavaScript to run this app.
34-
</noscript>
35-
<div id="root"></div>
36-
<!--
54+
<body>
55+
<noscript> You need to enable JavaScript to run this app. </noscript>
56+
<div id="root"></div>
57+
<!--
3758
This HTML file is a template.
3859
If you open it directly in the browser, you will see an empty page.
3960
@@ -43,6 +64,5 @@
4364
To begin the development, run `npm start` or `yarn start`.
4465
To create a production bundle, use `npm run build` or `yarn build`.
4566
-->
46-
</body>
47-
48-
</html>
67+
</body>
68+
</html>

0 commit comments

Comments
 (0)