Skip to content

Commit 5770412

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

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

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>VS Code GitHub Copilot Agent Lab | TypeScript Edition</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>VS Code GitHub Copilot Agent Lab</title>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
4+
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
77
<meta name="theme-color" content="#2563eb" />

0 commit comments

Comments
 (0)