Skip to content

Commit

Permalink
+ | Google Analytics tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BolvicBolvicovic committed Nov 15, 2024
1 parent aa17819 commit be7aebe
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions goserv/app/templates/components/ga4Tag.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{define "ga4Tag"}}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J2DENNHQ68"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-J2DENNHQ68');
</script>
{{end}}
1 change: 1 addition & 0 deletions goserv/app/templates/pages/api_page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
{{template "ga4Tag"}}
<body class="bg-gray-100">
{{template "navbar" .Navbar}}
<br/>
Expand Down
1 change: 1 addition & 0 deletions goserv/app/templates/pages/dashboard.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<script src="https://cdn.tailwindcss.com"></script>
</head>
{{template "ga4Tag"}}
<body class="bg-gray-100">
{{template "navbar" .Navbar}}
<br/>
Expand Down
1 change: 1 addition & 0 deletions goserv/app/templates/pages/login_page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<title>Login</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
{{template "ga4Tag"}}
<body class="bg-gray-100" onload="OnLoad()">
<div class="w-full">
{{template "navbar" .Navbar}}
Expand Down
1 change: 1 addition & 0 deletions goserv/app/templates/pages/main_page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
{{template "ga4Tag"}}
<body class="bg-gray-100">
{{template "navbar" .Navbar}}
<br/>
Expand Down
1 change: 1 addition & 0 deletions goserv/app/templates/pages/why_bluebeam.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
{{template "ga4Tag"}}
<body class="bg-gray-100">
{{template "navbar" .Navbar}}
<br/>
Expand Down

0 comments on commit be7aebe

Please sign in to comment.