Skip to content

Commit 4832b98

Browse files
committed
Add hotjar
1 parent 920bfb9 commit 4832b98

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/seo.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@ const SEO = ({ description, lang, meta, title }) => {
103103
}
104104
`}
105105
</style>
106+
<!-- Hotjar Tracking Code for josix.tw -->
107+
<script>
108+
{`(function(h,o,t,j,a,r){
109+
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
110+
h._hjSettings={hjid:2539800,hjsv:6};
111+
a=o.getElementsByTagName('head')[0];
112+
r=o.createElement('script');r.async=1;
113+
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
114+
a.appendChild(r);
115+
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
116+
`}
117+
</script>
106118
<script async src="https://cdn.volument.com/v1/volument.js" onload={`volument('${process.env.GATSBY_VOLUMENT_ID}')`}></script>
107119

108120
</Helmet>

0 commit comments

Comments
 (0)