Skip to content

Commit

Permalink
Merge pull request #8 from IowaComputerGurus/feature/analytics
Browse files Browse the repository at this point in the history
Minor Fixes
  • Loading branch information
mitchelsellers committed Sep 18, 2022
2 parents d4f452f + b911241 commit 0a70362
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/GitHubCostVisualizer.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>

<div class="form-group">
<button class="btn btn-primary w-100" type="submit">
<button class="btn btn-primary w-100" onclick="trackUpload();" type="submit">
Build My Report
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</script>
</div>
<div class="tab-pane fade" id="nav-tab-action-system-list" role="tabpanel" aria-labelledby="nav-tab-action-system-list-tab">
<table class="display">
<table class="display w-100">
<thead>
<tr>
<th>Operating System</th>
Expand Down
15 changes: 15 additions & 0 deletions Source/GitHubCostVisualizer.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,22 @@
@await RenderSectionAsync("Header", false)
</head>
<body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G25TVL4TTW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G25TVL4TTW');
function trackUpload() {
gtag('event', 'upload', {
'event_category': 'upload',
'event_label': 'upload'
});
}
</script>
<nav class="navbar icg-navbar bg-white row m-0">
<div class="navbar-header">

Expand Down

0 comments on commit 0a70362

Please sign in to comment.