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 }}' })