You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
For anyone who comes here in the future, I ran into this issue as well when implementing my own nuxt segment module (and vue plugin) modeled after this one. From what I could tell the cause is that when segment loads it replaces the window.analytics stubs that were created with the actual segment functions. However somehow the object reference is broken for uses within the nuxt context and nuxt still calls a copy of the stubs so the segment calls never get made.
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, andthis.$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.The text was updated successfully, but these errors were encountered: