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(tracking): add additional home page telemetry #6018

Conversation

aditya-radhakrishnan
Copy link
Contributor

@aditya-radhakrishnan aditya-radhakrishnan commented Sep 22, 2022

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Sep 22, 2022
@github-actions
Copy link

github-actions bot commented Sep 22, 2022

Unit Test Results (build & test)

564 tests  +2   564 ✔️ +2   12m 47s ⏱️ -3s
139 suites ±0       0 💤 ±0 
139 files   ±0       0 ±0 

Results for commit f8e02f2. ± Comparison against base commit 2ea9b67.

♻️ This comment has been updated with latest results.


export const HomePage = () => {
analytics.event({ type: EventType.PageViewEvent, originPath: window.location.pathname });
Copy link
Contributor

Choose a reason for hiding this comment

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

let's make a homepage-specific EventType

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a HomePageViewEvent!

const url = isGlossaryEntityCard ? PageRoutes.GLOSSARY : `${PageRoutes.BROWSE}/${entityPathName}`;
const onBrowseEntityCardClick = () => {
analytics.event({
type: EventType.BrowseResultClickEvent,
Copy link
Contributor

Choose a reason for hiding this comment

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

lets make this homepage-browse specific

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a HomePageBrowseResultClickEvent!

@aditya-radhakrishnan aditya-radhakrishnan merged commit f57f398 into datahub-project:master Sep 23, 2022
@aditya-radhakrishnan aditya-radhakrishnan deleted the ar--telemetry-home branch September 23, 2022 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants