Skip to content

Commit

Permalink
Merge branch 'master' of github.com:PrestaShopCorp/segment-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu roux committed Sep 2, 2020
2 parents ced7f32 + 6c81255 commit d7d6573
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,26 @@ export default {
Vue.use(VueSegment, {
id: 'XXXXX',
router
})
});
```
### Option Page Categorie

### Option exclude route

```js
export default {
name: "activity",
path: "activity",
meta: {exclude: true}, // <= add this key in your route object, true to exclude, false to track
component: () =>
import(
/* webpackChunkName: "dashboardActivity" */ "@/core/dashboard/pages/ActivityApp"
),
redirect: "activity/revenue",
children: [RevenueRouter, OrderRouter, ConversionRouter, VisitRouter],
};
```

### Option Page Category

put the name attribute in each route and add your router to the vue-segment initialization

Expand All @@ -72,6 +89,6 @@ Vue.use(VueSegment, {
id: 'XXXXX',
router,
pageCategory: "ps_metrics_"
})
});
```

0 comments on commit d7d6573

Please sign in to comment.