Skip to content

Commit 02da8dc

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

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
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>GitHub Copilot for Xcode Workshop</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>GitHub Copilot for Xcode Workshop</title>

0 commit comments

Comments
 (0)