Skip to content

Commit 5f7ec25

Browse files
committed
Adding Google Analytics
1 parent 1ddd722 commit 5f7ec25

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/main/resources/templates/html/block_explorer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
<title>BlockMatrix Chain</title>
88
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
99
<link rel="stylesheet" th:href="@{styles/main.css}">
10+
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-158781103-1"></script>
11+
<script>
12+
window.dataLayer = window.dataLayer || [];
13+
function gtag(){dataLayer.push(arguments);}
14+
gtag('js', new Date());
15+
gtag('config', 'UA-158781103-1');
16+
17+
</script>
1018
</head>
1119
<body>
1220
<section>

src/main/resources/templates/html/wallet_ui.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
<title>BlockMatrix Chain</title>
88
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
99
<link rel="stylesheet" th:href="@{styles/main.css}">
10+
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-158781103-1"></script>
11+
<script>
12+
window.dataLayer = window.dataLayer || [];
13+
function gtag(){dataLayer.push(arguments);}
14+
gtag('js', new Date());
15+
gtag('config', 'UA-158781103-1');
16+
17+
</script>
1018
</head>
1119
<body>
1220
<section>

0 commit comments

Comments
 (0)