Skip to content

Commit

Permalink
feat: google analytics implementations. #1275
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandonicolau committed Dec 9, 2020
1 parent ec52131 commit c2ef6c3
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 64 deletions.
11 changes: 1 addition & 10 deletions frontend/explorer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,8 @@
}
</script>


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

gtag('config', 'UA-85679627-1');
</script>

<script src="ga/google-analytics.js"></script>

<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="1739eae9-ca05-49a0-800a-3c2bd487fa19" type="text/javascript"
Expand Down
10 changes: 1 addition & 9 deletions frontend/eyeballing/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,7 @@
<link rel='stylesheet' href="%PUBLIC_URL%/visiomatic/visiomatic/dist/visiomatic.css" />

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

gtag('config', 'UA-85679627-1');
</script>
</script>
<script src="ga/google-analytics.js"></script>


<title>Tile Viewer</title>
Expand Down
23 changes: 23 additions & 0 deletions frontend/ga/google-analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// ## EXEMPLO DE GOOGLE ANALYTICS ##

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

// gtag('config', 'G-EEW8XVF479');
// </script>

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

// gtag('config', 'G-2JMWE98YJD');
// </script>
9 changes: 1 addition & 8 deletions frontend/landing_page/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oxanium|Roboto:300,400,500,700&display=swap" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-85679627-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-85679627-1');
</script>
<script src="ga/google-analytics.js"></script>
<title>LIneA Science Server</title>
</head>

Expand Down
11 changes: 1 addition & 10 deletions frontend/products/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,7 @@


<!-- Google Analitics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-85679627-1', 'auto');
ga('send', 'pageview');

</script>
<script src="ga/google-analytics.js"></script>

<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="61c015a6-f5c6-4b95-bd2d-9ea9b6f11c0d" type="text/javascript" src="bootstrap.js"></script>
Expand Down
11 changes: 2 additions & 9 deletions frontend/sky/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<script src="./google-analytics.js"></script>
<title>Sky Viewer</title>

<!--
Expand Down Expand Up @@ -55,14 +55,7 @@
</script>

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

gtag('config', 'UA-85679627-1');
</script>
<script src="ga/google-analytics.js"></script>


<!-- The line below must be kept intact for Sencha Cmd to build your application -->
Expand Down
11 changes: 1 addition & 10 deletions frontend/target/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,8 @@
}
</script>


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

gtag('config', 'UA-85679627-1');
</script>

<script src="ga/google-analytics.js"></script>

<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="85a0e2c2-ad9b-4f4a-84ed-649bd3f711fd" type="text/javascript"
Expand Down
9 changes: 1 addition & 8 deletions frontend/userquery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,7 @@
}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-85679627-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-85679627-1');
</script>
<script src="ga/google-analytics.js"></script>

<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="ec311b0b-1ca2-4f2f-b672-f7e9bf9f9023" type="text/javascript"
Expand Down

0 comments on commit c2ef6c3

Please sign in to comment.