Skip to content

Commit

Permalink
google analytics tag for multifol.io
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Jul 1, 2024
1 parent 7d89f7f commit c46618c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P8SCP5YFBJ"></script>
<script>
if(location.hostname !== "localhost" && !location.hostname.startsWith("agreeable-wave-0445aab10-")) {
var siteTag = null;

if(location.hostname === "bogle.tools") {
siteTag = 'G-P8SCP5YFBJ';
}
else if (location.hostname === "multifol.io")
{
siteTag = 'G-G2DBGS5RWK';
}

if (siteTag !== null) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-P8SCP5YFBJ');
gtag('config', siteTag);
}
</script>
<script>
Expand Down

0 comments on commit c46618c

Please sign in to comment.