Skip to content

Commit caf3d17

Browse files
committed
Add Google analytics script
1 parent 01585ac commit caf3d17

File tree

1 file changed

+39
-25
lines changed

1 file changed

+39
-25
lines changed

public/index.html

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
<!DOCTYPE html>
22
<html lang="en" style="height: 100%;">
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<meta name="description" content="Welcome to my personnal portfolio builded with VueJS !"/>
8-
9-
<meta property="og:title" content="Hugo Bollon Portfolio" />
10-
<meta property="og:type" content="website" />
11-
<meta property="og:url" content="https://hugobollon.me/" />
12-
<meta property="og:locale" content="en_US" />
13-
<meta property="og:image" content="<%= BASE_URL %>og.png" />
14-
<meta property="og:description" content="Welcome to my personnal portfolio builded with VueJS !" />
15-
16-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
17-
18-
<title>Hugo Bollon Portfolio</title>
19-
</head>
20-
<body style="height: 100%;">
21-
<noscript>
22-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
23-
</noscript>
24-
<div id="app"></div>
25-
<!-- built files will be auto injected -->
26-
</body>
27-
</html>
3+
4+
<head>
5+
<!-- Global site tag (gtag.js) - Google Analytics -->
6+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-148902588-2"></script>
7+
<script>
8+
window.dataLayer = window.dataLayer || [];
9+
function gtag() { dataLayer.push(arguments); }
10+
gtag('js', new Date());
11+
12+
gtag('config', 'UA-148902588-2');
13+
</script>
14+
15+
<meta charset="utf-8">
16+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
17+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
18+
<meta name="description" content="Welcome to my personnal portfolio builded with VueJS !" />
19+
20+
<meta property="og:title" content="Hugo Bollon Portfolio" />
21+
<meta property="og:type" content="website" />
22+
<meta property="og:url" content="https://hugobollon.me/" />
23+
<meta property="og:locale" content="en_US" />
24+
<meta property="og:image" content="<%= BASE_URL %>og.png" />
25+
<meta property="og:description" content="Welcome to my personnal portfolio builded with VueJS !" />
26+
27+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
28+
29+
<title>Hugo Bollon Portfolio</title>
30+
</head>
31+
32+
<body style="height: 100%;">
33+
<noscript>
34+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
35+
Please enable it to continue.</strong>
36+
</noscript>
37+
<div id="app"></div>
38+
<!-- built files will be auto injected -->
39+
</body>
40+
41+
</html>

0 commit comments

Comments
 (0)