Skip to content

Commit ba36076

Browse files
committed
Fix hotjar code
1 parent 9c0d549 commit ba36076

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

site/_core/Site.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,11 @@ var Search = require('./Search');
1212
var SiteData = require('./SiteData');
1313
var ReactGA = require('react-ga');
1414
ReactGA.initialize('UA-99001722-7');
15-
(function(h,o,t,j,a,r){
16-
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
17-
h._hjSettings={hjid:1273792,hjsv:6};
18-
a=o.getElementsByTagName('head')[0];
19-
r=o.createElement('script');r.async=1;
20-
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
21-
a.appendChild(r);
22-
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
2315

2416
export default ({ page, category, title, section, className, noSearch, children }) =>
2517
<html>
2618
<head>
2719

28-
2920
<meta charSet="utf-8" />
3021
<meta httpEquiv="X-UA-Compatible" content="IE=edge,chrome=1" />
3122
<meta name="google-site-verification" content="wt4jHZa0ru-stSJJrlY5sSJzj9MB0ZA6BzkprNilZdM" />
@@ -128,6 +119,14 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
128119
129120
ga('create', 'UA-99001722-7', 'auto');
130121
ga('send', 'pageview');
122+
(function(h,o,t,j,a,r){
123+
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
124+
h._hjSettings={hjid:1273792,hjsv:6};
125+
a=o.getElementsByTagName('head')[0];
126+
r=o.createElement('script');r.async=1;
127+
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
128+
a.appendChild(r);
129+
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
131130
`}} />
132131
</body>
133132
</html>

0 commit comments

Comments
 (0)