Skip to content

🔥 feat(tracking): Adding duration+heartbeat to view tracking while staying in budget#159

Merged
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2597_new-view-tracking-functionality
Mar 2, 2026
Merged

🔥 feat(tracking): Adding duration+heartbeat to view tracking while staying in budget#159
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2597_new-view-tracking-functionality

Conversation

@phobetron
Copy link
Copy Markdown
Collaborator

@phobetron Charles Hudson (phobetron) commented Mar 2, 2026

  • Emit periodic component view updates (viewDurationMs) keyed by a stable componentViewId for each active visibility cycle.
  • Propagate new view fields across web/RN tracking, API schemas, event builders, and analytics typing (including split click vs view builder args).
  • Refactor entry interaction runtime to detector-based orchestration and replace tracking.observe/unobserve with enableElement/disableElement/clearElement.
  • Add per-element override controls via dataset flags (data-ctfl-track-views, data-ctfl-track-clicks) plus view interval override (data-ctfl-view-duration-update-interval-ms).
  • Simplify DOM existence observation and remove idle-chunking paths; replace js-cookie + es-toolkit usage with lightweight web cookie utilities to limit bundle impact.
  • Update implementation UIs/e2e/unit tests, specs, README, lint workflow/scripts, and bundle-size thresholds to match the new tracking behavior.
  • Overall quick update/re-sync of docs/specs/etc.

[NT-2597]

…aying in budget

- Emit periodic component view updates (`viewDurationMs`) keyed by a stable `componentViewId` for each active visibility cycle.
- Propagate new view fields across web/RN tracking, API schemas, event builders, and analytics typing (including split click vs view builder args).
- Refactor entry interaction runtime to detector-based orchestration and replace `tracking.observe/unobserve` with `enableElement/disableElement/clearElement`.
- Add per-element override controls via dataset flags (`data-ctfl-track-views`, `data-ctfl-track-clicks`) plus view interval override (`data-ctfl-view-duration-update-interval-ms`).
- Simplify DOM existence observation and remove idle-chunking paths; replace `js-cookie` + `es-toolkit` usage with lightweight web cookie utilities to limit bundle impact.
- Update implementation UIs/e2e/unit tests, specs, README, lint workflow/scripts, and bundle-size thresholds to match the new tracking behavior.
- Overall quick update/re-sync of docs/specs/etc.

[[NT-2597](https://contentful.atlassian.net/browse/NT-2597)]
@wiz-inc-38d59fb8d7
Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 2 Medium 6 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 1 Low
Software Management Finding Software Management Findings -
Total 2 Medium 7 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@phobetron Charles Hudson (phobetron) merged commit 00f782f into main Mar 2, 2026
30 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-2597_new-view-tracking-functionality branch March 2, 2026 16:33
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.

1 participant