Skip to content

Commit

Permalink
add google analytics code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWe35 committed Mar 26, 2021
1 parent 070c4b5 commit 0f93d90
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions view/include/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ function printDateTime(datetime) {
var evtm = new Date(parseInt(datetime*1000)).toLocaleString([], {year: 'numeric', month: 'short', day: '2-digit', hour: '2-digit', minute:'2-digit'})
document.write(evtm)
}
</script>


<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MSX4MRJBRK"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MSX4MRJBRK');
</script>
13 changes: 12 additions & 1 deletion view/include_studio/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@ function printDateTime(datetime) {

<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<link rel="stylesheet" href="/assets/style_studio.css?v=2">
<link rel="stylesheet" href="/assets/style_studio.css?v=2">


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

0 comments on commit 0f93d90

Please sign in to comment.