Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
clairesunstudio committed Aug 13, 2020
1 parent 46cab21 commit 45430aa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patternlab/styleguide/source/_meta/_00-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,24 @@
"@id": "https://mayflower.digital.mass.gov/patternlab#main-navigation'}}"
}
</script>


{#
GA for testing Google Optimize
#}
<script>
(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',2000,
{'GTM-TBBFWGN':true});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-12471675-5', 'auto');
ga('require', 'GTM-TBBFWGN');
</script>
</head>
<body class="{{ bodyClass }}" vocab="http://schema.org/" typeof="WebPage">

0 comments on commit 45430aa

Please sign in to comment.