Skip to content

Commit

Permalink
google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyridel committed Jul 6, 2024
1 parent e9c6a9f commit dc6c2b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions views/layouts/base.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
<head>
<%- include('../partials/headV2.ejs') %>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RPHB3361MQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-RPHB3361MQ');
</script>

<%# Views can insert additional html head content here %>
<%- defineContent('head') %>
</head>
Expand Down
10 changes: 0 additions & 10 deletions views/public/indexV2.ejs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<%- contentFor('head') %>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RPHB3361MQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-RPHB3361MQ');
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]" defer></script>
<script defer>
document.addEventListener('DOMContentLoaded', () => {
Expand Down

0 comments on commit dc6c2b6

Please sign in to comment.