dansmaculotte / dansmaculotte/nuxt-segment

this.$segment.track does not work from vuex action

Open
#14 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Hi again,

I have a pretty strange issue.

When I call `this.$segment.track()` from a method of my vue it works and I see the event in my segment dashboard.

When I call the exact same `this.$segment.track()` in an action from vuex it does not do any error but I don't see it in the dashboard of Segment, and `this.$segment` does exist, when I console log it I see an array of events that I wanted to track but that were not sent to Segment backend.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.