From bfc05b524082f1f38f338bb5fa271193f670b23a Mon Sep 17 00:00:00 2001 From: Yury Savin Date: Wed, 10 Oct 2018 09:10:40 +0300 Subject: [PATCH] Add information about webvisor #12 According to #12 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6929a1..c528e18 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,11 @@ class MyComponent extends React.Component { ``` Please note that you need to initialize the tracker object only once. -Because of that, you should insert initializer to the place where it won't be remounted (that means at least outside of router scope). +Because of that, you should insert initializer to the place where it won't be remounted (that means at least outside of router scope). +If you want to use [webvisor](https://metrika.yandex.ru/promo/webvisor), you should pass `options={{webvisor: true}}` to to `YMInitializer`, for example: +``` + +``` You can create several identical trackers (that might be useful for domain-wise segmentation). @@ -51,7 +55,7 @@ ym('reachGoal', 'whateverGoal', {awesomeParameter: 42}); See [#6](https://github.com/narkq/react-yandex-metrika/issues/6) for details. ```javascript - + ``` ### Migration from 1.0