Skip to content

Commit ade8dc5

Browse files
committed
Add Google Tag Manager
1 parent e31088c commit ade8dc5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Pages/Index.cshtml

+15
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
@using Duende.IdentityServer.Models
66
@model IdentityServerHost.Pages.Home.Index
77

8+
<!-- Google Tag Manager (noscript) -->
9+
<noscript>
10+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMR39D3G"
11+
height="0" width="0" style="display:none;visibility:hidden"></iframe>
12+
</noscript>
13+
<!-- End Google Tag Manager (noscript) -->
814
<div class="welcome-page">
915
<h1>
1016
<img src="~/duende-logo.svg" class="logo">
@@ -203,6 +209,15 @@
203209

204210
@section scripts
205211
{
212+
<!-- Google Tag Manager -->
213+
<script>
214+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
215+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
216+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
217+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
218+
})(window,document,'script','dataLayer','GTM-MMR39D3G');</script>
219+
<!-- End Google Tag Manager -->
220+
206221
<script src="~/lib/clipboardjs/dist/clipboard.min.js"></script>
207222
<script>
208223
$('.clipboard').tooltip({

0 commit comments

Comments
 (0)