Skip to content

Commit

Permalink
add google-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayThomble committed Feb 10, 2023
1 parent 5d2d234 commit 501582d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions react-frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

<title>URL Shortener App</title>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HF67ZZS89T"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HF67ZZS89T');
</script>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
Expand Down
11 changes: 10 additions & 1 deletion views/common.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@
<!-- add favicon -->
<link rel="icon" href="/public/favicon.png" type="image/x-icon"/>
<link href="/public/style.css" rel="stylesheet" type="text/css"/>
</head>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TQ8JFW88DB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TQ8JFW88DB');
</script>

0 comments on commit 501582d

Please sign in to comment.