Skip to content

Commit a99564c

Browse files
brunoborgesCopilot
andcommitted
Add Google Analytics tracking to workshop HTML pages
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 12f6791 commit a99564c

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

docs/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<!-- Google tag (gtag.js) -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LSC44NDPLQ"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
gtag('config', 'G-LSC44NDPLQ');
11+
</script>
412
<meta charset="UTF-8">
513
<meta name="viewport" content="width=device-width, initial-scale=1.0">
614
<title>App Modernization with GitHub Copilot</title>

docs/step.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<!-- Google tag (gtag.js) -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LSC44NDPLQ"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
gtag('config', 'G-LSC44NDPLQ');
11+
</script>
412
<meta charset="UTF-8">
513
<meta name="viewport" content="width=device-width, initial-scale=1.0">
614
<title>App Modernization with GitHub Copilot</title>

web/src/main/resources/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html xmlns:th="http://www.thymeleaf.org" th:fragment="layout(title, content)">
33
<head>
4-
<meta charset="UTF-8">
4+
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title th:text="${title}">AWS S3 Asset Manager</title>
77
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

0 commit comments

Comments
 (0)