nuxt-segment
Find more information about nuxt-segment (opens new window)
Installation
First, you need to add the nuxt-segment (opens new window) to your application:
yarn add nuxt-segment
Then, on the nuxt.config.js
file, you need to add it to the modules
key.
export default {
modules: [
// Simple usage
'@dansmaculotte/nuxt-segment',
// With options
[
'@dansmaculotte/nuxt-segment',
{ /* module options */ }
],
],
// Or with global options
segment: {
writeKey: '',
disabled: false,
useRouter: true
}
}
More information about the module options (opens new window)