Skip to content

Commit

Permalink
Adds Hotjar tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbonhomme committed Jan 10, 2018
1 parent c7bb6b5 commit f389f94
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@
<link rel="stylesheet" href="{{root}}assets/css/app.css">
</head>
<body>

{{!-- Pages you create in the src/pages/ folder are inserted here when the flattened page is created. --}}
{{> body}}

<script src="{{root}}assets/js/app.js"></script>
<script>
(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-85251159-3', 'auto');
ga('send', 'pageview');
</script>

<!-- Google Analytics Tracking -->
<script>!function(e,t,a,n,c,o,s){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,o=t.createElement(a),s=t.getElementsByTagName(a)[0],o.async=1,o.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(o,s)}(window,document,"script",0,"ga"),ga("create","UA-85251159-3","auto"),ga("send","pageview");</script>

<!-- Hotjar Tracking -->
<script>!function(t,h,e,j,s,n){t.hj=t.hj||function(){(t.hj.q=t.hj.q||[]).push(arguments)},t._hjSettings={hjid:741037,hjsv:6},s=h.getElementsByTagName("head")[0],(n=h.createElement("script")).async=1,n.src="https://static.hotjar.com/c/hotjar-"+t._hjSettings.hjid+".js?sv="+t._hjSettings.hjsv,s.appendChild(n)}(window,document);</script>
</body>
</html>

0 comments on commit f389f94

Please # to comment.