Skip to Content

JavaScript File

URL: https://mc.yandex.com/metrika-tags/_/tag_ec.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Wed, 20 May 2026 15:00:39 GMT
Download Time: Less than a second
Cookies: bh=YMist9AGaiPcyuH/CJLYobEDn8
Size: 66 KB
HTTP Headers:  15 headers
Links In:  1 pages
OK Issues: No issues found

1(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}

2:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}

3,e(t)}

4function t(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var o=s.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}

5return("string"===r?String:Number)(t)}

6(t,"string");return"symbol"==e(r)?r:r+""}

7function r(e,r,s){return(r=t(r))in e?Object.defineProperty(e,r,{value:s,enumerable:!0,configurable:!0,writable:!0}

8):e[r]=s,e}

9const s=e=>void 0!==e;function o(e){return"object"==typeof e&&null!==e}

10let n=function(e){return e.Init="init",e.Params="params",e.ReachGoal="reachGoal",e.Hit="hit",e}

11({}

12);class c{static visitParams(e,t,r){c.visitParamsCommon(e,t,{goalParams:r}

13)}

14static isCounterReady(){return!!window.Ya||!!window.ym}

15static visitParamsAsync(e,t){return new Promise(((r,s)=>{try{c.visitParamsCommon(e,t,{callback:r}

16)}

17catch(e){s(e)}

18}

19))}

20static reachGoal(e,t,r){"undefined"!=typeof ym&&(r?ym(e,n.ReachGoal,t,r):ym(e,n.ReachGoal,t))}

21static hit(e,t,r){ym(e,n.Hit,t,r)}

22static getCounters(){const e=Ya?._metrika?.getCounters();return Array.isArray(e)?e.map((e=>{if(o(e)&&"number"==typeof e.id){const t=Number(e.type);return{id:e.id,type:isNaN(t)?void 0:t,accurateTrackBounce:!!e.accurateTrackBounce,clickmap:!!e.clickmap,trackHash:!!e.trackHash,trackLinks:!!e.trackLinks,webvisor:!!e.webvisor}

23}

24}

25)).filter(s):[]}

26static getEcomSettings(){const e=window.Ya?._metrika?.ecrs;if(Array.isArray(e))return e}

27static getCounterIdsWithEcomSettings(){const e=c.getEcomSettings();return e?.map((e=>{const t=e.counterKey.split(":")[0],r=JSON.parse(e.settings);return{counterId:Number(t),settings:{isProduction:1===r.ec,isTesting:1===r.ect,isAIFeatureEnabled:1===r.eaim,conversions:r.econfig?.conversions}

28}

29}

30))}

31static getZeroCodeConversionMarkup(){let e;const t=window.Ya?._metrika?.ecmv;if(t){e=c.getCounters().reduce(((e,r)=>{const s=t[`${r.id}

32:0`];return s&&(e[r.id]=JSON.parse(s)),e}

33),{}

34)}

35return e}

36static getClientId(e){return new Promise((t=>{const r=window.Ya?._metrika?.counters?.[`${e}

37:0`];r?r.getClientID((e=>t(e))):t(void 0)}

38))}

39static visitParamsCommon(e,t,r){const{goalParams:o,callback:c}

40=r||{}

...

</html>