Skip to content

Commit

Permalink
REGD-83-google-analytics-4 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjiecn authored Jan 27, 2023
1 parent b6e03ab commit 37b2b54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/encoded/static/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,16 @@ class App extends React.Component {
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<Title>{title}</Title>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Q7NV8NWM99" />
<script
dangerouslySetInnerHTML={{ __html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Q7NV8NWM99');
` }}
/>

{base ? <base href={base} /> : null}
<link rel="canonical" href={canonical} />
<script async src="//www.google-analytics.com/analytics.js" />
Expand Down

0 comments on commit 37b2b54

Please sign in to comment.