Skip to content

Commit 58a5296

Browse files
committed
Add Google Tag Manager snippet
1 parent 667bb24 commit 58a5296

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

_templates/ampl-pages.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!-- Google Tag Manager -->
2+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6+
})(window,document,'script','dataLayer','GTM-WDR59JC');</script>
7+
<!-- End Google Tag Manager -->
8+
<!-- Google Tag Manager (noscript) -->
9+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDR59JC"
10+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
11+
<!-- End Google Tag Manager (noscript) -->
12+
113
<div class="dropdown-header">AMPL Resources</div>
214
<li><a class="btn btn-sm dropdown-item" target="_blank" href="https://ampl.com/"><i class="fas fa-home fa-fw fa-lg"></i> AMPL.com</a></li>
315
<li><a class="btn btn-sm dropdown-item" target="_blank" href="https://discuss.ampl.com/"><i class="fab fa-discourse fa-fw fa-lg"></i>AMPL Support Forum</a></li>

0 commit comments

Comments
 (0)