Skip to content

Commit

Permalink
Merge pull request #39 from SmartGecko44/User-tracking
Browse files Browse the repository at this point in the history
Add Google Analytics v2
  • Loading branch information
SmartGecko44 authored May 3, 2024
2 parents fc11067 + 9eea8a8 commit 1f0e2d3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 42 deletions.
4 changes: 4 additions & 0 deletions gxcko.me/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'">
<title>Page not found &middot; GitHub Pages</title>
<link href="favicon.ico" rel="icon" type="image/x-icon"> <!-- Link to favicon -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script src="scripts/google%20analytics.js"></script>
<style type="text/css" media="screen">
body {
background-color: #f1f1f1;
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="scripts/google%20analytics.js"></script>
<noscript>
<style>
#darkModeMenu {
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/redirect/genshin-util.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="../scripts/google%20analytics.js"></script>
<script>
window.location.href = "https://www.google.com";
</script>
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/redirect/github-repo.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="../scripts/google%20analytics.js"></script>
<script>
window.location.href = "https://github.com/SmartGecko44/SmartGecko44.github.io";
</script>
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/redirect/github.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="../scripts/google%20analytics.js"></script>
<script>
window.location.href = "https://github.com/SmartGecko44";
</script>
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/redirect/twitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="../scripts/google%20analytics.js"></script>
<script>
window.location.href = "https://twitter.com/SmartGecko44";
</script>
Expand Down
8 changes: 1 addition & 7 deletions gxcko.me/redirect/youtube.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MJD6FZJPCB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');
</script>
<script src="../scripts/google%20analytics.js"></script>
<script>
window.location.href = "https://www.youtube.com/@SmartGecko44";
</script>
Expand Down
5 changes: 5 additions & 0 deletions gxcko.me/scripts/google analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-MJD6FZJPCB');

0 comments on commit 1f0e2d3

Please sign in to comment.