-
Notifications
You must be signed in to change notification settings - Fork 3k
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(React): React App Analytics (WIP) #2435
Conversation
timestamp?: number; | ||
urn?: string; | ||
date?: string; | ||
userAgent?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deviceId --> also remember this is not a session token
*/ | ||
export interface BaseEvent { | ||
type: EventType; | ||
actor?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actorUrn?
type: EventType; | ||
actor?: string; | ||
timestamp?: number; | ||
urn?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
objectUrn?
Taking another pass to address comments & add additional tracking |
Closed via #2499 |
Scope
These changes only impact the React client.
Changes
This PR introduces a generalized analytics module for tracking:
inside the React app. With this PR, we will the ability to easily support to a variety of backend analytics providers like
& many others
We achieve this by building a small extension on top of the popular Analytics library, which supports many analytics providers out of the box.
In this PR, we introduce support for Google Analytics, Mixpanel, Amplitude, & a logging provider for testing, as well as implement a series of custom tracking events:
that will allow you to understand your users behavior on the DataHub platform.
As of now, configuring an analytics provider (plugin) requires changing code under the "plugins" directory of the analytics module inside
datahub-web-react
. In a follow up PR, we intend to expose these configurations via environment variables on the datahub-frontend-react Docker container, allowing you to configure product analytics without modifying code.Status
Work in progress. Will be providing a richer README with details on supporting additional providers, configuring a provider, etc.
Example
Mixpanel Dashboard showing metrics collected using the framework.
Checklist