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

🪟 🔧 Add experiment information to page views events (Segment) #16329

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

letiescanciano
Copy link
Contributor

What

We need to know what experiment the user is on when viewing different pages

How

Thanks to a prior implementation, we were already adding experiments information to the context. The only thing we needed to do was adding that piece of context to analytics.page()

🚨 User Impact 🚨

None

@letiescanciano letiescanciano requested a review from a team as a code owner September 5, 2022 11:36
@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Sep 5, 2022
Copy link
Collaborator

@timroes timroes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, haven't tested locally, but checked while pairing. Vamos!

@letiescanciano letiescanciano merged commit 76d23d4 into master Sep 5, 2022
@letiescanciano letiescanciano deleted the leti/add-experiments-to-page-view branch September 5, 2022 12:56
@@ -7,7 +7,7 @@ export class AnalyticsService {

alias = (newId: string): void => this.getSegmentAnalytics()?.alias?.(newId);

page = (name: string): void => this.getSegmentAnalytics()?.page?.(name);
page = (name: string): void => this.getSegmentAnalytics()?.page?.(name, { ...this.context });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit as I was out Monday: We don't need to object spread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants