From 52e1b491b54631ab5c9d97c36b02515d5e359830 Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Fri, 12 Jul 2024 16:25:23 +0100 Subject: [PATCH] add smartlook JS code --- src/views/common/smartlook.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/views/common/smartlook.js diff --git a/src/views/common/smartlook.js b/src/views/common/smartlook.js new file mode 100644 index 00000000..d4cdf752 --- /dev/null +++ b/src/views/common/smartlook.js @@ -0,0 +1,6 @@ +window.smartlook || (function (d) { + var o = smartlook = function () { o.api.push(arguments) }; const h = d.getElementsByTagName('head')[0] + const c = d.createElement('script'); o.api = new Array(); c.async = true; c.type = 'text/javascript' + c.charset = 'utf-8'; c.src = 'https://web-sdk.smartlook.com/recorder.js'; h.appendChild(c) +})(document) +smartlook('init', '{{ smartlookKey }}', { region: '{{ smartlookRegion }}' })