0

I'm trying to connect to a Segment source from a Vue/Nuxt application. I'm using the @dansmaculotte/nuxt-segment npm package for Segment setup.

Here's the code:

nuxt.config.js

config = {
  //...
  modules: [
    '@dansmaculotte/nuxt-segment'
  ],
  segment: {
    writeKey: 'SEGMENT_WRITE_KEY',
    disabled: false,
    useRouter: true
  },
  //...
}

component.vue

this.$segment.identify('***', {
  name: '***',
  email: '**@**.com'
});
this.$segment.track('***', { plan: '***' });
this.$segment.page('***');

Segment setup:

Segment setup page

On the deployed app, Segment is being initialised and does make tracking calls successfully.

Segment console log

Segment calls on network

But with all that, the data does not come through on Segment. I didn't get any errors that can tell me what's wrong. Not sure what the problem is. Thanks in advance for whoever might be able to help.

Ahmet Ömer
  • 614
  • 1
  • 10
  • 18

0 Answers0