Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

this.$analytics only works on page refresh #1

@saschametz

Description

@saschametz

I followed the documentation and added this event to my signUp method

this.$analytics.track('Sign Up', {
  name: user.name,
  email: user.email
})

Unfortunately this didn't worked. Then I've realized this only works if I actually make a full page refresh. But you only load the page once in a SPA or Universal application.

After looking at your code I've seen that you define a $segment attribute but this isn't mentioned in the documentation.

So I've changed my code to this and it works without a page refresh.

this.$segment.track('Sign Up', {
  name: user.name,
  email: user.email
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions