Skip to content

Commit beb616c

Browse files
Update script
1 parent 629603e commit beb616c

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

integrations/crisp/src/script.raw.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// (function (h, o, t, j, a, r) {
2-
// const trackingID = '<TO_REPLACE>';
3-
// h.hj =
4-
// h.hj ||
5-
// function () {
6-
// (h.hj.q = h.hj.q || []).push(arguments);
7-
// };
8-
// h._hjSettings = { hjid: trackingID, hjsv: 6 };
9-
// a = o.getElementsByTagName('head')[0];
10-
// r = o.createElement('script');
11-
// r.async = 1;
12-
// r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
13-
// a.appendChild(r);
14-
// })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
1+
(function (d, s) {
2+
const trackingID = '<TO_REPLACE>';
3+
window.$crisp = [];
4+
window.CRISP_WEBSITE_ID = trackingID;
155

16-
// Example script
17-
// <script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="<TO_REPLACE>";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
6+
d = document;
7+
s = d.createElement('script');
8+
s.src = 'https://client.crisp.chat/l.js';
9+
s.async = 1;
10+
d.getElementsByTagName('head')[0].appendChild(s);
11+
})(window, document);

0 commit comments

Comments
 (0)