Skip to content

Commit 0a70362

Browse files
Merge pull request #8 from IowaComputerGurus/feature/analytics
Minor Fixes
2 parents d4f452f + b911241 commit 0a70362

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

Source/GitHubCostVisualizer.Web/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424

2525
<div class="form-group">
26-
<button class="btn btn-primary w-100" type="submit">
26+
<button class="btn btn-primary w-100" onclick="trackUpload();" type="submit">
2727
Build My Report
2828
</button>
2929
</div>

Source/GitHubCostVisualizer.Web/Views/Home/_ActionDetail.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</script>
100100
</div>
101101
<div class="tab-pane fade" id="nav-tab-action-system-list" role="tabpanel" aria-labelledby="nav-tab-action-system-list-tab">
102-
<table class="display">
102+
<table class="display w-100">
103103
<thead>
104104
<tr>
105105
<th>Operating System</th>

Source/GitHubCostVisualizer.Web/Views/Shared/_Layout.cshtml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,22 @@
3636
@await RenderSectionAsync("Header", false)
3737
</head>
3838
<body>
39+
<!-- Google tag (gtag.js) -->
40+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G25TVL4TTW"></script>
41+
<script>
42+
window.dataLayer = window.dataLayer || [];
43+
function gtag(){dataLayer.push(arguments);}
44+
gtag('js', new Date());
3945
46+
gtag('config', 'G-G25TVL4TTW');
47+
48+
function trackUpload() {
49+
gtag('event', 'upload', {
50+
'event_category': 'upload',
51+
'event_label': 'upload'
52+
});
53+
}
54+
</script>
4055
<nav class="navbar icg-navbar bg-white row m-0">
4156
<div class="navbar-header">
4257

0 commit comments

Comments
 (0)