Skip to content

Commit

Permalink
Update Google Analytics tag (analytics.js) to the Google tag (gtag.js) (
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible authored Jun 28, 2023
1 parent f9242b2 commit 5e3907d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions generators/client/templates/src/main/webapp/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,13 @@
</script>
-->
<%_ } _%>
<!-- Google Analytics: uncomment and change UA-XXXXX-X to be your site's ID.
<!-- Google Analytics: uncomment and change both instances of UA-XXXXX-X to be your site's ID.
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXX-X"></script>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-XXXXX-X');
</script>-->
</body>
</html>

0 comments on commit 5e3907d

Please sign in to comment.