vchaptsev / vue-yandex-metrika

Vue plugin for Yandex Metrika
MIT License
73 stars 34 forks source link

expectation from ignoreRoutes #9

Open kareni3 opened 5 years ago

kareni3 commented 5 years ago

Relevant code or config

import VueYandexMetrika from 'vue-yandex-metrika';
Vue.use(VueYandexMetrika, {
  id: 50854955,
  router,
  env: process.env.NODE_ENV,
  ignoreRoutes: ['traderoom', 'exchanges-keys'],
  options: {
    clickmap: true,
    trackLinks: true,
    accurateTrackBounce: true,
    webvisor: true,
    ut: "noindex"
  }
});

What you did: I just try to use your plugin.

What is expected: When I specify ignoreRoutes, I expect that no packets will be sent to the Yandex metric on these routes. But it doesn't work.

What happened: In fact, when I am on the route /traderoom and /exchanges /keys, the packets continue to be sent to the Yandex metric.

Problem description: It interferes with testing.

Maybe i am doing something wrong please help in my problem. Thanks.