![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
yandex-metrika-module-nuxt3
Advanced tools
This package is a fork for those who don't want to wait for the official release of a Yandex Metrika module.
The module was created by Nuxt Community and rewritten by dankerow to support Nuxt 3. All credit belongs to:
This package includes precompiled scripts to let people integrate Yandex Metrika into their project. There's no need to compile anything, it is ready to be used out of the box.
This module automatically sends first page and route change events to Yandex Metrika.
Note: Yandex Metrika is not enabled in dev mode.
You can set environment variable NODE_ENV
to production
for testing in dev mode.
yandex-metrika-module-nuxt3
dependency using yarn or npm to your projectyandex-metrika-module-nuxt3
to modules
section of nuxt.config.js
{
modules: ['yandex-metrika-module-nuxt3']
}
You can pass options directly in module declaration:
{
modules: [
[
'yandex-metrika-module-nuxt3',
{
id: 'XXXXXX',
webvisor: true,
// consoleLog: true,
// clickmap: true,
// useCDN: false,
// trackLinks: true,
// accurateTrackBounce: true,
}
]
]
}
Or you can specify yandexMetrika
key:
{
modules: ['yandex-metrika-module-nuxt3'],
yandexMetrika: {
id: 'XXXXXX',
// ...
}
}
In Nuxt 2.13+, you can also use public runtime config:
{
modules: ['yandex-metrika-module-nuxt3'],
publicRuntimeConfig: {
yandexMetrika: {
id: process.env.YANDEX_METRIKA_ID,
// ...
}
}
}
For more information:
Name | Default value | Type | Description |
---|---|---|---|
accurateTrackBounce | true | Boolean | Number |
childIframe | false | Boolean | Whether to record iframe contents without a tag in a child window |
clickmap | true | Boolean | Whether to collect data for a click map |
defer | false | Boolean | Whether to disable automatically sending data during tag initialization |
ecommerce | false | Boolean | String |
params | — | Object | Array |
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 |
trackHash | false | Boolean | Hash tracking in the browser's address bar |
trackLinks | true | Boolean | Track clicks on outbound links |
trustedDomains | — | Array | Indicates a trusted domain for recording the contents of a child iframe. Contains the domain address of the parent window |
type | 0 | Number | Tag type. 1 for YAN |
webvisor | false | Boolean | Whether to use Session Replay |
triggerEvent | false | Boolean | Whether to check if the tag is ready |
yarn install
yarn dev:prepare
to generate type stubs.yarn dev
to start playground in development mode.FAQs
Add Yandex Metrika to your Nuxt 3 application.
The npm package yandex-metrika-module-nuxt3 receives a total of 1,354 weekly downloads. As such, yandex-metrika-module-nuxt3 popularity was classified as popular.
We found that yandex-metrika-module-nuxt3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.