diff --git a/README.md b/README.md index 50b94a3..7dab220 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ Pass the VueRouter instance to the plugin and let it handle everything for you: }) - **Options**: | Name | Description | Required | Default | @@ -60,9 +59,9 @@ Pass the VueRouter instance to the plugin and let it handle everything for you: | id | Your tracking id | True | null | | router | VueRouter object | True | null | | env | "production" or "development" | False | [process.env.NODE_ENV] || "production" | -| productionOnly | Do not track a page visit if env !== "production" | False | true | +| productionOnly | Do not track a page visit if env is not "production" | False | true | +| skipSamePath | Do not track a page visit if previous and next routes URLs match | False | true | | ignoreRoutes | List of ignored routes names | False | [] | -| skipSamePath | Do not track a page visit if previous and next routes URLs match | False | false | You are also able to use [Metrika API] wherever you want to: diff --git a/src/config.js b/src/config.js index 7dfb21a..5bddeaa 100644 --- a/src/config.js +++ b/src/config.js @@ -5,7 +5,7 @@ let config = { env: null, productionOnly: true, ignoreRoutes: [], - skipSamePath: false + skipSamePath: true } export default config