awslabs / clickstream-web

Web SDK for Clickstream Analytics on AWS
https://aws.amazon.com/solutions/implementations/clickstream-analytics-on-aws/
Apache License 2.0
15 stars 0 forks source link

fix: change user engagement event and engagement time calculate rule #13

Closed zhu-xiaowei closed 1 year ago

zhu-xiaowei commented 1 year ago

Description

Change the user engagement event definition to: Calculate an engagement event for each screen leave. Changes the screen view engage time to the engage time of the previous user engagement event. Add configuration for user engagement event.

General Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1d54f80) 100.00% compared to head (9f7898c) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #13 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 24 24 Lines 928 950 +22 Branches 168 173 +5 ========================================= + Hits 928 950 +22 ``` | [Files Changed](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs) | Coverage Δ | | |---|---|---| | [src/provider/Event.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3Byb3ZpZGVyL0V2ZW50LnRz) | `100.00% <ø> (ø)` | | | [src/types/Analytics.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3R5cGVzL0FuYWx5dGljcy50cw==) | `100.00% <ø> (ø)` | | | [src/provider/AnalyticsEventBuilder.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3Byb3ZpZGVyL0FuYWx5dGljc0V2ZW50QnVpbGRlci50cw==) | `100.00% <100.00%> (ø)` | | | [src/provider/ClickstreamProvider.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3Byb3ZpZGVyL0NsaWNrc3RyZWFtUHJvdmlkZXIudHM=) | `100.00% <100.00%> (ø)` | | | [src/tracker/PageViewTracker.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3RyYWNrZXIvUGFnZVZpZXdUcmFja2VyLnRz) | `100.00% <100.00%> (ø)` | | | [src/tracker/SessionTracker.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3RyYWNrZXIvU2Vzc2lvblRyYWNrZXIudHM=) | `100.00% <100.00%> (ø)` | | | [src/util/StorageUtil.ts](https://app.codecov.io/gh/awslabs/clickstream-web/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c3JjL3V0aWwvU3RvcmFnZVV0aWwudHM=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.