Skip to content

Commit

Permalink
Add google analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharydenton authored and aptos-bot committed May 10, 2022
1 parent 982ff5f commit d38c712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CWW2TW4HSD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-CWW2TW4HSD', <%= {debug_mode: !Rails.env.production?}.to_json.html_safe %>);
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= render 'layouts/google_analytics' %>
<%= javascript_importmap_tags %>
</head>

Expand Down

0 comments on commit d38c712

Please sign in to comment.