New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

next-metrika

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-metrika

## 📦 Installation / Установка

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

📊 Next Metrika / Яндекс.Метрика для Next

📦 Installation / Установка

npm i next-metrika
yarn add next-metrika

🔨 Usage / Использование

To use Yandex.Metrika in Next you have to create Metrika counter first. Then you can view code preview for it, you need to get ID from it.

Чтобы использовать Метрику в Next, вам понадобится сначала создать счетчик в Метрике, потом из предпросмотра кода скопировать ID.

Use this ID as prop for component:

Используйте этот ID как параметр компонента:

import Metrika from 'next-metrika';

const Layout: FC = () => {
  return (
    <>
      ...

      <Metrika id={123456789} /> {/* Your ID / Ваш ID */}
    </>
  )
}

Keywords

next

FAQs

Package last updated on 04 Jan 2024

Did you know?

Socket

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.

Install

Related posts