Skip to content

Commit

Permalink
Merge pull request #8 from mlibrary/DS-117-add-google-tag-code-to-doc…
Browse files Browse the repository at this point in the history
…-site

[DS-117] Add Google Tag code to Doc Site
  • Loading branch information
erinesullivan committed Nov 1, 2022
2 parents 7a26b1a + d5878b8 commit 91e2605
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 11ty/src/_includes/layouts/base.njk
Expand Up @@ -7,6 +7,15 @@
<title>
{{ title }} | {{ meta.siteName }}
</title>
<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KMFGVLX');
</script>
<!-- End Google Tag Manager -->
<!-- Open Graph -->
<meta property="og:title" content="{{ title }}"/>
<meta property="og:type" content="website"/>
Expand All @@ -29,6 +38,11 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KMFGVLX" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<section aria-label="Skip links" class="skip-links">
<div class="viewport-container">
<ul>
Expand Down

0 comments on commit 91e2605

Please sign in to comment.