Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(segment): Add some tracking on Segment (part 3) #348

Merged
merged 4 commits into from
Jul 27, 2022

Conversation

rsempe
Copy link
Collaborator

@rsempe rsempe commented Jul 27, 2022

Context

We want to track and measure what our users are doing, both on the self-hosted and fully-hosted sides.
By sending backend events to Segment.com.

Objective

The goal of this PR is to send a tracking event to Segment on:

  • Invoice creation
  • Payment status change on invoice update
  • Payment status change on stripe service

And use membership/unidentifiable as Segment user id when membership is not found (for instance when doing an action from the rails console).

Segment Screenshots

Capture d’écran 2022-07-27 à 11 34 16

Capture d’écran 2022-07-27 à 11 51 13

@rsempe rsempe requested a review from lovrocolic July 27, 2022 09:58
@rsempe rsempe merged commit b53b648 into main Jul 27, 2022
@rsempe rsempe deleted the rs-segment-track-events-part3 branch July 27, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants