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 trackMetric method for Angular plugin #1359

Merged
merged 7 commits into from
Sep 4, 2020

Conversation

xiao-lix
Copy link
Contributor

@xiao-lix xiao-lix commented Sep 2, 2020

This PR adds trackMetric method for Angular plugin to allow users to track component usage (component existed time in seconds).

  • call trackMetric inside component life cycle hook method ngOnDestroy to trigger sending a metric event with component existed time, with an additional property component name.
  • one example metric event:
    image

@xiao-lix xiao-lix requested a review from a team as a code owner September 2, 2020 01:12
@xiao-lix xiao-lix merged commit fa91833 into master Sep 4, 2020
@xiao-lix xiao-lix deleted the lxiao/angular-track-metric branch September 4, 2020 19:10
@MSNev MSNev added this to the 2.5.9 milestone Oct 1, 2020
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.

None yet

3 participants