Skip to content

Commit

Permalink
Merge pull request #6 from BoletoSimples/vs-add-googletagmanager
Browse files Browse the repository at this point in the history
Add Google Tag Manager
  • Loading branch information
Pliavi committed Jul 10, 2019
2 parents 218d364 + 1dfe53f commit 964626d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/tracking/gtag_body.html
@@ -0,0 +1,5 @@
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVZ3JQK" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
7 changes: 7 additions & 0 deletions _includes/tracking/gtag_head.html
@@ -0,0 +1,7 @@
<!-- 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-KVZ3JQK');</script>
<!-- End Google Tag Manager -->
4 changes: 4 additions & 0 deletions _layouts/default.html
Expand Up @@ -39,6 +39,7 @@
<link href="/css/header-footer.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="/css/github.css" rel="stylesheet">
{% include tracking/gtag_head.html %}

<!-- Favicon -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300' rel='stylesheet' type='text/css'>
Expand Down Expand Up @@ -121,6 +122,9 @@ <h1>{{ page.title }}</h1>
ga('send', 'pageview');

</script>

{% include tracking/gtag_body.html %}

<!-- Start of LiveChat (www.livechatinc.com) code -->
<script>
window.__lc = window.__lc || {};
Expand Down

0 comments on commit 964626d

Please sign in to comment.