{"_id":"@bloodsbro/nuxt-yandex-metrika","_rev":"2-34a6a266ef80399fbe69515c0567cb66","name":"@bloodsbro/nuxt-yandex-metrika","dist-tags":{"latest":"1.4.0"},"versions":{"1.3.0":{"name":"@bloodsbro/nuxt-yandex-metrika","version":"1.3.0","author":{"url":"https://github.com/TakNePoidet","name":"TakNePoidet","email":"https://taknepoidet.xyz/"},"license":"MIT","_id":"@bloodsbro/nuxt-yandex-metrika@1.3.0","maintainers":[{"name":"bloodsbro","email":"vanka2929@gmail.com"}],"homepage":"http://TakNePoidet/nuxt-yandex-metrika","bugs":{"url":"https://github.com/TakNePoidet/nuxt-yandex-metrika/issues"},"dist":{"shasum":"2eb84545dd00f0bf231a2c44dd78494ff01c884a","tarball":"https://registry.npmjs.org/@bloodsbro/nuxt-yandex-metrika/-/nuxt-yandex-metrika-1.3.0.tgz","fileCount":22,"integrity":"sha512-w9Q+kJ1M9lKpIYdErO8h7M2vgKB8UvCThyKnxflK2t6Am0rr9DnkF207UXVDoup/EVjC+WUwqFCYWfz6ABK8EA==","signatures":[{"sig":"MEYCIQC3NYkUnExUGwvxQUJqPoqaP7wMx5z07TlZ8Uvat/8a7gIhAJzeEdxksMK7hSajL1HgFNDt951W5hgIbrUG163XvZAl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26711},"main":"./dist/module.cjs","type":"module","types":"./dist/types.d.ts","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"gitHead":"04e8f64043cca101e37230c886c155a952d8a36c","scripts":{"dev":"nuxi dev playground","lint":"eslint --fix .","prepack":"nuxt-module-build build","prepare":"husky install","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","prettier":"prettier --write .","dev:build":"nuxi build playground build","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground"},"_npmUser":{"name":"bloodsbro","email":"vanka2929@gmail.com"},"repository":{"url":"git+https://github.com/TakNePoidet/nuxt-yandex-metrika.git","type":"git"},"_npmVersion":"10.9.0","description":"Add Yandex Metrika to your Nuxt 3 application.","directories":{},"lint-staged":{"**/*.*":["prettier --write","git add"],"**/*.(ts|vue)":["eslint --fix","git add"]},"_nodeVersion":"22.12.0","dependencies":{"defu":"^6.1.4","chalk":"^5.3.0","@nuxt/kit":"^3.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nuxt":"^3.12.3","husky":"^9.0.11","eslint":"^9.7.0","prettier":"^3.3.3","@types/node":"^20.14.10","changelogen":"^0.5.5","lint-staged":"^15.2.7","@nuxt/schema":"^3.12.3","@nuxt/devtools":"latest","@poidet/prettier":"^0.8.0","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^0.8.1"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-yandex-metrika_1.3.0_1748814614870_0.7101724391753683","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@bloodsbro/nuxt-yandex-metrika","version":"1.4.0","description":"Add Yandex Metrika to your Nuxt 3 application.","repository":{"type":"git","url":"git+https://github.com/bloodsbro/nuxt-yandex-metrika.git"},"homepage":"http://bloodsbro/nuxt-yandex-metrika","license":"MIT","type":"module","author":{"name":"TakNePoidet","email":"https://taknepoidet.xyz/","url":"https://github.com/TakNePoidet"},"contributors":[{"name":"ximelie","url":"https://github.com/bloodsbro/"}],"exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground build","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags","prettier":"prettier --write .","lint":"eslint --fix .","prepare":"husky install"},"publishConfig":{"access":"public"},"dependencies":{"@nuxt/kit":"^3.12.3","chalk":"^5.3.0","defu":"^6.1.4"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.3.13","@nuxt/module-builder":"^0.8.1","@nuxt/schema":"^3.12.3","@poidet/prettier":"^0.8.0","@types/node":"^20.14.10","changelogen":"^0.5.5","eslint":"^9.7.0","husky":"^9.0.11","lint-staged":"^15.2.7","nuxt":"^3.12.3","prettier":"^3.3.3"},"lint-staged":{"**/*.(ts|vue)":["eslint --fix","git add"],"**/*.*":["prettier --write","git add"]},"bugs":{"url":"https://github.com/bloodsbro/nuxt-yandex-metrika/issues"},"_id":"@bloodsbro/nuxt-yandex-metrika@1.4.0","gitHead":"9e81facf936c7e46d36230c81050cf9d8a55f005","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-W0TKAO5iXp/ZAED5iDyXysmpTiePH0FJ9uFW4v0SYdiZLyxITMzkljrkmCJIqM3uGAxJGYw7mhCa7VmPN9Vydw==","shasum":"2eb631ae9064c4b37f1e5655bc9df9b32566bbbe","tarball":"https://registry.npmjs.org/@bloodsbro/nuxt-yandex-metrika/-/nuxt-yandex-metrika-1.4.0.tgz","fileCount":22,"unpackedSize":26811,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBLZhBnQG1Oy4YGXLkzjnhARu4aPmI71uOCoVjf9YcobAiAKF77IiI6zSMPGZX02s+VrBw+EtN0a2w1Sk5vsGwK+qw=="}]},"_npmUser":{"name":"bloodsbro","email":"vanka2929@gmail.com"},"directories":{},"maintainers":[{"name":"bloodsbro","email":"vanka2929@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nuxt-yandex-metrika_1.4.0_1748924787460_0.20477581679278511"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-01T21:50:14.806Z","modified":"2025-06-03T04:26:27.811Z","1.3.0":"2025-06-01T21:50:15.117Z","1.4.0":"2025-06-03T04:26:27.624Z"},"bugs":{"url":"https://github.com/bloodsbro/nuxt-yandex-metrika/issues"},"author":{"name":"TakNePoidet","email":"https://taknepoidet.xyz/","url":"https://github.com/TakNePoidet"},"license":"MIT","homepage":"http://bloodsbro/nuxt-yandex-metrika","repository":{"type":"git","url":"git+https://github.com/bloodsbro/nuxt-yandex-metrika.git"},"description":"Add Yandex Metrika to your Nuxt 3 application.","maintainers":[{"name":"bloodsbro","email":"vanka2929@gmail.com"}],"readme":"<!--\r\nFind and replace all on all files (CMD+SHIFT+F):\r\n- Name: Yandex Metrika\r\n- Package name: nuxt-yandex-metrika\r\n- Description: Yandex Metrika for Nuxt 3\r\n-->\r\n\r\n# Yandex Metrika for Nuxt 3\r\n\r\n[![npm version][npm-version-src]][npm-version-href]\r\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\r\n[![License][license-src]][license-href]\r\n[![Nuxt][nuxt-src]][nuxt-href]\r\n\r\n## Quick Setup\r\n\r\n1. Add `nuxt-yandex-metrika` dependency to your project\r\n\r\n```bash\r\n# Using pnpm\r\npnpm add -D nuxt-yandex-metrika\r\n\r\n# Using yarn\r\nyarn add --dev nuxt-yandex-metrika\r\n\r\n# Using npm\r\nnpm install --save-dev nuxt-yandex-metrika\r\n```\r\n\r\n2. Add `nuxt-yandex-metrika` to the `modules` section of `nuxt.config.ts`\r\n\r\n```ts\r\nexport default defineNuxtConfig({\r\n  modules: [\"nuxt-yandex-metrika\"],\r\n});\r\n```\r\n\r\n## Configure\r\n\r\n```ts\r\n{\r\n  modules: [\"nuxt-yandex-metrika\"],\r\n  yandexMetrika: {\r\n    id: 'XXXXXX',\r\n    // debug: process.env.NODE_ENV !== \"production\",\r\n    // delay: 0,\r\n    // cdn: false,\r\n    // verification: null, // Verification in Yandex Webmaster\r\n    // options: {\r\n    //  webvisor: true\r\n    // },\r\n  }\r\n}\r\n```\r\n\r\n## Options\r\n\r\n| Name                | Default value | Type    | Description                                                                                                                                      |\r\n|---------------------|---------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------|\r\n| accurateTrackBounce | true          | Boolean | Number                                                                                                                                           | Accurate bounce rate The parameter can accept these values: true — Enable the accurate bounce rate, with a non-bounce event registered after 15000 ms (15 s). false — Don't enable the accurate bounce rate. <N> (integer) — Enable the accurate bounce rate. Non-bounce events are recorded after <N> ms. |\r\n| childIframe         | false         | Boolean | Whether to record iframe contents without a tag in a child window                                                                                |\r\n| clickmap            | true          | Boolean | Whether to collect data for a click map                                                                                                          |\r\n| defer               | false         | Boolean | Whether to disable automatically sending data during tag initialization                                                                          |\r\n| ecommerce           | false         | Boolean | String                                                                                                                                           | Array                                                                                                                                                                                                                                                                                                      | Collect data for e-commerce — Ecommerce. true — Enable e-commerce data collection. Data is transmitted via a JavaScript array named dataLayer in the global namespace (window.dataLayer) false — Disable Ecommerce data collection. <objectName> (String) — Enable Ecommerce data collection. Data is transmitted via a JavaScript array named <objectName> in the global namespace (window.<objectName>) <array> (Array) — Enable Ecommerce data collection. Data is transmitted via a JavaScript <array> |\r\n| params              | —             | Object  | Array                                                                                                                                            | Session parameters transmitted during tag initialization To transmit session parameters at any other time, use the params method                                                                                                                                                                           |\r\n| userParams          | —             | Object  | Parameters of site users that are transmitted when initializing the tag To transmit user parameters at any other time, use the userParams method |\r\n| trackHash           | false         | Boolean | Hash tracking in the browser's address bar                                                                                                       |\r\n| trackLinks          | true          | Boolean | Track clicks on outbound links                                                                                                                   |\r\n| trustedDomains      | —             | Array   | Indicates a trusted domain for recording the contents of a child iframe. Contains the domain address of the parent window                        |\r\n| type                | 0             | Number  | Tag type. 1 for YAN                                                                                                                              |\r\n| webvisor            | false         | Boolean | Whether to use Session Replay                                                                                                                    |\r\n| triggerEvent        | false         | Boolean | Whether to check if the tag is ready                                                                                                             |\r\n\r\nFor more information:\r\n\r\n- [Documentation for Ya.Metrika](https://yandex.com/support/metrica/code/counter-initialize.html)\r\n\r\n## Usage\r\n\r\n| Component Name              | Auto Imported | Description                      |\r\n|-----------------------------|---------------|----------------------------------|\r\n| `<YandexMetrikaInformer />` | ✅             | Shows informer                   |\r\n| `<YandexVerification />`    | ✅             | Verification in Yandex Webmaster |\r\n\r\n### Methods\r\n\r\n```vue\r\n<template>\r\n    <button @click.prevent.stop=\"reachGoal('click', {})\">click</button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useYandexMetrika } from \"#imports\";\r\n\r\nconst { reachGoal } = useYandexMetrika();\r\n</script>\r\n```\r\n\r\n- [For more information](https://yandex.com/support/metrica/objects/method-reference.html?lang=en)\r\n\r\n## Development\r\n\r\n```bash\r\n# Install dependencies\r\nnpm install\r\n\r\n# Generate type stubs\r\nnpm run dev:prepare\r\n\r\n# Develop with the playground\r\nnpm run dev\r\n\r\n# Build the playground\r\nnpm run dev:build\r\n\r\n# Run ESLint\r\nnpm run lint\r\n\r\n# Run Vitest\r\nnpm run test\r\nnpm run test:watch\r\n\r\n# Release new version\r\nnpm run release\r\n```\r\n\r\n## Contributing\r\n\r\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n# Contact\r\n\r\nYakin Nikita - [@TakNePoidet](https://t.me/TakNePoidet)\r\n\r\n# Contributors\r\n\r\n<a href=\"https://github.com/TakNePoidet/nuxt-yandex-metrika/graphs/contributors\">\r\n  <img src=\"https://contrib.rocks/image?repo=TakNePoidet/nuxt-yandex-metrika\" />\r\n</a>\r\n\r\n## License\r\n\r\n[MIT License](./LICENSE)\r\n\r\n<!-- Badges -->\r\n\r\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-yandex-metrika/latest.svg?style=flat&colorA=18181B&colorB=28CF8D\r\n[npm-version-href]: https://npmjs.com/package/nuxt-yandex-metrika\r\n[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-yandex-metrika.svg?style=flat&colorA=18181B&colorB=28CF8D\r\n[npm-downloads-href]: https://npmjs.com/package/nuxt-yandex-metrika\r\n[license-src]: https://img.shields.io/npm/l/nuxt-yandex-metrika.svg?style=flat&colorA=18181B&colorB=28CF8D\r\n[license-href]: https://npmjs.com/package/nuxt-yandex-metrika\r\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js\r\n[nuxt-href]: https://nuxt.com\r\n","readmeFilename":"README.md","contributors":[{"name":"ximelie","url":"https://github.com/bloodsbro/"}]}