29 lines
943 B
JavaScript
29 lines
943 B
JavaScript
import Script from "next/script";
|
|
|
|
export default function Yektanet() {
|
|
const getYektanet = () => {
|
|
return {
|
|
__html: ` !function (t, e, n) {
|
|
t.yektanetAnalyticsObject = n, t[n] = t[n] || function () {
|
|
t[n].q.push(arguments)
|
|
}, t[n].q = t[n].q || [];
|
|
var a = new Date, r = a.getFullYear().toString() + "0" + a.getMonth() + "0" + a.getDate() + "0" + a.getHours(),
|
|
c = e.getElementsByTagName("script")[0], s = e.createElement("script");
|
|
s.id = "ua-script-rqSC1axy"; s.dataset.analyticsobject = n;
|
|
s.async = 1; s.type = "text/javascript";
|
|
s.src = "https://cdn.yektanet.com/rg_woebegone/scripts_v3/rqSC1axy/rg.complete.js?v=" + r, c.parentNode.insertBefore(s, c)
|
|
}(window, document, "yektanet");
|
|
`,
|
|
};
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<Script
|
|
strategy="afterInteractive"
|
|
dangerouslySetInnerHTML={getYektanet()}
|
|
/>
|
|
</>
|
|
);
|
|
}
|