Skip to content

Commit

Permalink
Adding Google Analytics (#1214)
Browse files Browse the repository at this point in the history
* Adding Google Analytics

* Removing condition in case of development

Co-authored-by: Glauber Costa Vila-Verde <[email protected]>
  • Loading branch information
matheusallein and glaubervila committed Jan 27, 2020
1 parent 8a8ce65 commit 56f4ae7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/eyeballing/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
<link rel='stylesheet' href="%PUBLIC_URL%/visiomatic/Leaflet/dist/leaflet.css" />
<link rel='stylesheet' href="%PUBLIC_URL%/visiomatic/visiomatic/dist/visiomatic.css" />

<!-- Google Analitics -->
<script>
//Evita usar o Google Analytics em desenvolvimento
(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>

<title>Tile Inspection</title>
<!-- <script src="%PUBLIC_URL%/env-config.js"></script> -->
</head>
Expand Down

0 comments on commit 56f4ae7

Please sign in to comment.