Skip to content

Commit

Permalink
feat: skipSamePath default value changed to true
Browse files Browse the repository at this point in the history
This is a more reasonable approach
  • Loading branch information
Victor Chaptsev committed Dec 5, 2017
1 parent b5e5851 commit ca35096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,16 @@ Pass the VueRouter instance to the plugin and let it handle everything for you:
})



**Options**:

| Name | Description | Required | Default |
| -------------- | ----------------------------------------------------------------- | -------- | ------------------------------------------------ |
| 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:
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let config = {
env: null,
productionOnly: true,
ignoreRoutes: [],
skipSamePath: false
skipSamePath: true
}

export default config

0 comments on commit ca35096

Please sign in to comment.