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

[BUG] Duration should report as zero for non initial pageviews #14

Merged
merged 2 commits into from
May 7, 2021

Conversation

xiao-lix
Copy link
Contributor

@xiao-lix xiao-lix commented May 6, 2021

@xiao-lix xiao-lix requested a review from MSNev May 6, 2021 01:17
const pageViewTelemetry: IPageViewTelemetry = { uri: extConfig.router.url };
const pageViewTelemetry: IPageViewTelemetry = {
uri: extConfig.router.url,
properties: { duration: 0 } // SPA route change loading durations are undefined, so send 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: DO NOT set duration to 0 on initial page view (line 68)

Copy link
Contributor

Choose a reason for hiding this comment

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

As part of the SDK initialization I believe it calls trackPageView() automatically...

@xiao-lix xiao-lix changed the title [BUG] Duration should report as zero for pageviews [BUG] Duration should report as zero for non initial pageviews May 6, 2021
@xiao-lix xiao-lix merged commit 7b03215 into main May 7, 2021
@MSNev MSNev deleted the lxiao/duration branch April 22, 2022 23:43
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.

2 participants