Skip to content

Commit

Permalink
Merge pull request #39 from hancockinformatics/add_analytics
Browse files Browse the repository at this point in the history
Added Google Analytics.
  • Loading branch information
travis-m-blimkie authored Mar 19, 2024
2 parents 2321902 + e7811c8 commit e3614a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ABCindex
Title: A Shiny app to calculate ABCI for checkerboard assays
Version: 0.99.72
Version: 0.99.73
Authors@R:
person(given = "Travis",
family = "Blimkie",
Expand Down
1 change: 1 addition & 0 deletions app.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ abci_ui <- page_navbar(
bg = bs_get_variables(app_theme, varnames = "secondary"),

header = tags$head(
includeHTML("www/google_analytics.html"),
useShinyjs(),
tags$link(rel = "stylesheet", href = "css/custom.css"),
tags$link(rel = "icon", href = "img/ABCindex_icon.svg"),
Expand Down
9 changes: 9 additions & 0 deletions www/google_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0S0P4X6MPV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-0S0P4X6MPV');
</script>

0 comments on commit e3614a8

Please sign in to comment.