Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
25081: release-2.0: ui: identify cluster to segment on load r=couchand a=couchand

Backport 1/1 commits from cockroachdb#24996.

/cc @cockroachdb/release

---

Fixes an issue where a bounce will never send an identify event to Segment.

Release note: None


Co-authored-by: Andrew Couch <[email protected]>
  • Loading branch information
craig[bot] and couchand committed May 14, 2018
2 parents 0fc350b + 873176a commit c3b55ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ui/src/redux/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ history.listen((location) => {
}
lastPageLocation = location;
analytics.page(location);
analytics.identify();
});

// Record the initial page that was accessed; listen won't fire for the first
// page loaded.
analytics.page(history.getCurrentLocation());
// Identify the cluster.
analytics.identify();

0 comments on commit c3b55ba

Please sign in to comment.