<!-- GOOGLE ANALITYCS -->
{% if checkConfigHasScript('google_ua') %}
{{ getScript('google_ua', nonceHash)|raw }}
{% elseif getConfig('google_ua') %}
<script async nonce="{{ nonceHash }}" src="https://www.googletagmanager.com/gtag/js?id={{ getConfig('google_ua') }}"></script>
<script nonce="{{ nonceHash }}">window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '{{ getConfig('google_ua') }}');</script>
{% endif %}
<!-- GOOGLE ANALITYCS 4 -->
{% if checkConfigHasScript('google_ga4') %}
{{ getScript('google_ga4', nonceHash)|raw }}
{% elseif getConfig('google_ga4') %}
<script async nonce="{{ nonceHash }}" src="https://www.googletagmanager.com/gtag/js?id={{ getConfig('google_ga4') }}"></script>
<script nonce="{{ nonceHash }}"> window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '{{ getConfig('google_ga4') }}');</script>
{% endif %}
<!-- GOOGLE TAG MANAGER -->
{% if checkConfigHasScript('google_gtm') %}
{{ getScript('google_gtm', nonceHash)|raw }}
{% elseif getConfig('google_gtm') %}
<script nonce="{{ nonceHash }}">
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','{{ getConfig('google_gtm') }}');
</script>
{% endif %}
<!-- GOOGLE ADS -->
{% if checkConfigHasScript('google_ads') %}
{{ getScript('google_ads', nonceHash)|raw }}
{% elseif getConfig('google_ads') %}
<script async nonce="{{ nonceHash }}" src=https://www.googletagmanager.com/gtag/js?id={{ getConfig('google_ads') }}/></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', '{{ getConfig('google_ads') }}');</script>
{% endif %}
<!-- CLARITY -->
{% if checkConfigHasScript('clarity_script') %}
{{ getScript('clarity_script', nonceHash)|raw }}
{% elseif getConfig('clarity_script') %}
<script nonce="{{ nonceHash }}" type="text/javascript">(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src='https://www.clarity.ms/tag/'+i;y=l})(window, document, "clarity", "script", '{{ getConfig('clarity_script') }}');</script>
{% endif %}
<!-- HOTJAR -->
{% if checkConfigHasScript('hotjar_script') %}
{{ getScript('hotjar_script', nonceHash)|raw }}
{% elseif getConfig('hotjar_script') %}
<script nonce="{{ nonceHash }}">(function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:'{{ getConfig('clarity_script') }}',hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');</script>
{% endif %}
<!-- TWITTER -->
{% if checkConfigHasScript('twitter_pixel') %}
{{ getScript('twitter_pixel', nonceHash)|raw }}
{% elseif getConfig('twitter_pixel') %}
<script nonce="{{ nonceHash }}">!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');twq('config','{{ getConfig('twitter_pixel') }}');</script>
{% endif %}
<!-- TIKTOK -->
{% if checkConfigHasScript('tiktok_pixel') %}
{{ getScript('tiktok_pixel', nonceHash)|raw }}
{% elseif getConfig('tiktok_pixel') %}
<script nonce="{{ nonceHash }}">!function (w, d, t) {w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};ttq.load('{{ getConfig('tiktok_pixel') }}');ttq.page();}(window, document, 'ttq');</script>
{% endif %}
<!-- KAWAI -->
{% if checkConfigHasScript('kwai_pixel') %}
{{ getScript('kwai_pixel', nonceHash)|raw }}
{% elseif getConfig('kwai_pixel') %}
<script nonce="{{ nonceHash }}">
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.install=t():e.install=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){var o,i=e.createElement("script");i.type="text/javascript",i.async=!0,i.src=t,n&&(i.onerror=function(){r(e,n)});var a=e.getElementsByTagName("script")[0];null===(o=a.parentNode)||void 0===o||o.insertBefore(i,a)};!function(e,t,n){e.KwaiAnalyticsObject=n;var i=e[n]=e[n]||[];i.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"];var a=function(e,t){e[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o([t],n,!0);e.push(i)}};i.methods.forEach((function(e){a(i,e)})),i.instance=function(e){var t,n=(null===(t=i._i)||void 0===t?void 0:t[e])||[];return i.methods.forEach((function(e){a(n,e)})),n},i.load=function(e,o){var a="https://s1.kwai.net/kos/s101/nlav11187/pixel/events.js";i._i=i._i||{},i._i[e]=[],i._i[e]._u=a,i._t=i._t||{},i._t[e]=+new Date,i._o=i._o||{},i._o[e]=o||{};var c="?sdkid=".concat(e,"&lib=").concat(n);r(t,a+c,"https://s16-11187.ap4r.com/kos/s101/nlav11187/pixel/events.js"+c)}}(window,document,"kwaiq")}])}));
</script>
<script nonce="{{ nonceHash }}">
kwaiq.load('{{ getConfig('kwai_pixel') }}');
kwaiq.page();
</script>
{% endif %}
<!-- MICROSOFT -->
{% if checkConfigHasScript('microsoft_ads') %}
{{ getScript('microsoft_ads', nonceHash)|raw }}
{% elseif getConfig('microsoft_ads') %}
<script nonce="{{ nonceHash }}">(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[] ,f=function(){var o={ti:'{{ getConfig('microsoft_ads') }}', enableAutoSpaTracking: true}; o.q=w[u],w[u]=new UET(o),w[u].push(pageLoad)} ,n=d.createElement(t),n.src=r,n.async=1,n.onload=n .onreadystatechange=function() {var s=this.readyState;s &&s!==loaded&& s!==complete||(f(),n.onload=n. onreadystatechange=null)},i= d.getElementsByTagName(t)[0],i. parentNode.insertBefore(n,i)})(window,document,"script", '//bat.bing.com/bat.js,uetq');></script>
{% endif %}
<!-- TABOOLA -->
{% if checkConfigHasScript('taboola_pixel') %}
{{ getScript('taboola_pixel', nonceHash)|raw }}
{% elseif getConfig('taboola_pixel') %}
<script nonce="{{ nonceHash }}" type="text/javascript"> window._tfa = window._tfa || []; window._tfa.push({notify: "event", name: 'page_view', id: '{{ getConfig('taboola_pixel') }}'}); !function (t, f, a, x){ if (!document.getElementById(x)) { t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f); } }(document.createElement("script"), document.getElementsByTagName("script")[0], '//cdn.taboola.com/libtrc/unip/{{ getConfig('taboola_pixel') }}/tfa.js', "tb_tfa_script");</script>
{% endif %}
<!-- LINKDIN -->
{% if checkConfigHasScript('linkedin_it') %}
{{ getScript('linkedin_it', nonceHash)|raw }}
{% elseif getConfig('linkedin_it') %}
<script nonce="{{ nonceHash }}" type="text/javascript">_linkedin_partner_id='{{ getConfig('linkedin_it') }}';window._linkedin_data_partner_ids=window._linkedin_data_partner_ids || [];window._linkedin_data_partner_ids.push(_linkedin_partner_id);</script>
<script nonce="{{ nonceHash }}" type="text/javascript">(function(l){if (!l){window.lintrk=function(a,b){window.lintrk.q.push([a,b])};window.lintrk.q=[]}var s=document.getElementsByTagName("script")[0];var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src='https://snap.licdn.com/li.lms-analytics/insight.min.js';s.parentNode.insertBefore(b, s);})(window.lintrk);</script>
{% endif %}