Skip to content
R

react-yandex-metrika

Yandex Metrika component for React

by narkqFree

#915in UI Libraries
0In stores

Description

react-yandex-metrika is a React component package for Yandex.Metrika, the web analytics service. It adds the Yandex.Metrika tracking script…

Highlights

  • Adds the Yandex.Metrika script to a React app
  • ym tracking function as a module
  • Webvisor 2.0 support
  • Multiple trackers for segmentation
  • Migration guide from version 1.0

Ratings & Reviews

No ratings yet

Be the first to rate react-yandex-metrika.

People also visit

S

@sooro-io/react-gtm-module

React Google Tag Manager Module

UI Libraries
Launch
P

@pbe/react-yandex-maps

Yandex.Maps API bindings for React

UI Libraries
Launch
R

react-gtm-module

React Google Tag Manager Module

UI Libraries
Launch
M

@marvelapp/react-ab-test

A/B testing React components and debug tools

UI Libraries
Launch
R

react-native-marketingcloudsdk

A React Native component

UI Libraries
Launch
Y

Yandex Metrica

Free web analytics service

Productivity
Launch

react-yandex-metrika FAQ

What is react-yandex-metrika?

A React package for Yandex.Metrika analytics. It loads the tracking script and provides a ym function for sending events and page views.

Where should I put the initializer?

Once, at a level that is not remounted, such as outside the router. The tracker only needs to be initialised one time.

How do I turn on Webvisor?

Pass options={{webvisor: true}} to YMInitializer.

Is there a migration guide?

Yes. Replace the Initializer import with YMInitializer and move the arguments of ym.init into props on the component, which removes the ym.init call.

Is it open source?

Yes. The code is public on GitHub.

What are the best react-yandex-metrika alternatives?

Popular alternatives to react-yandex-metrika include @sooro-io/react-gtm-module, @pbe/react-yandex-maps and react-gtm-module. See all react-yandex-metrika alternatives

Developer Stuff

Badges