{% set salesViewerId = pimcore_website_config('salesViewerId')|default(null) %}
{% if salesViewerId %}
<!-- Sales Viewer-Tracker Script START-->
<script type="text/javascript" data-cookieconsent="ignore">
!(function (s, a, l, e, sv, i, ew, er)
{try {(a =s[a] || s[l] || function () {throw 'no_xhr';}),
(sv = i = 'https://salesviewer.org'),(ew = function(x){(s = new Image()),
(s.src = 'https://salesviewer.org/tle.gif?sva={{salesViewerId}}&u='+encodeURIComponent(window.location)+'&e=' + encodeURIComponent(x))}),
(l = s.SV_XHR = function (d) {return ((er = new a()),(er.onerror = function () {if (sv != i)
return ew('load_err');(sv = 'https://www.salesviewer.com/t'), setTimeout(l.bind(null, d), 0);}),
(er.onload = function () {(s.execScript || s.eval).call(er, er.responseText);}),
er.open('POST', sv, !0),(er.withCredentials = true),er.send(d),er);}),
l('h_json=' + 1 * ('JSON' in s && void 0 !== JSON.parse) + '&h_wc=1&h_event=' + 1 * ('addEventListener' in s) + '&sva=' + e);}
catch (x) {ew(x)}})(window, 'XDomainRequest', 'XMLHttpRequest', '{{salesViewerId}}');
</script>
<noscript><img src='https://salesviewer.org/{{salesViewerId}}.gif' style='visibility:hidden;' /></noscript>
<!-- Sales Viewer-Tracker Script END-->
{% endif %}