Skip to content

Commit

Permalink
cross domain analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
lil-shake-code committed Nov 2, 2023
1 parent 9505f73 commit ecb8acf
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 119 deletions.
236 changes: 120 additions & 116 deletions public/html5game/gms-aerospace-io.js

Large diffs are not rendered by default.

Binary file added public/html5game/soundEngine.mp3
Binary file not shown.
Binary file added public/html5game/soundEngine.ogg
Binary file not shown.
Binary file modified public/html5game/soundGoodClick.mp3
Binary file not shown.
Binary file modified public/html5game/soundGoodClick.ogg
Binary file not shown.
9 changes: 8 additions & 1 deletion public/index copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<text y=%22.90em%22 font-size=%2290%22>✈️</text></svg>"
/>
<!-- Google tag (gtag.js) -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-E5PDK9RXXV"
Expand All @@ -20,7 +21,13 @@
}
gtag("js", new Date());

gtag("config", "G-E5PDK9RXXV");
// Enable autoLinker for cross-domain tracking
gtag("config", "G-E5PDK9RXXV", {
linker: {
accept_incoming: true,
domains: ["*"],
},
});
</script>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down
12 changes: 10 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<text y=%22.90em%22 font-size=%2290%22>✈️</text></svg>"
/>
<!-- Google tag (gtag.js) -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-E5PDK9RXXV"
Expand All @@ -20,8 +21,15 @@
}
gtag("js", new Date());

gtag("config", "G-E5PDK9RXXV");
// Enable autoLinker for cross-domain tracking
gtag("config", "G-E5PDK9RXXV", {
linker: {
accept_incoming: true,
domains: ["*"],
},
});
</script>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
Expand Down Expand Up @@ -131,7 +139,7 @@
<!-- Run the game code -->
<script
type="text/javascript"
src="html5game/gms-aerospace-io.js?cachebust=1523047259"
src="html5game/gms-aerospace-io.js?cachebust=309532163"
></script>

<!-- Builtin injector for injecting runner path -->
Expand Down

0 comments on commit ecb8acf

Please sign in to comment.