Skip to content

refactor: rename timeOnPage to activeTimeOnPage in selectPlacements page_events - #110

Merged
alexs-mparticle merged 1 commit into
developmentfrom
rename-active-time-on-page
Aug 5, 2026
Merged

refactor: rename timeOnPage to activeTimeOnPage in selectPlacements page_events#110
alexs-mparticle merged 1 commit into
developmentfrom
rename-active-time-on-page

Conversation

@alexs-mparticle

Copy link
Copy Markdown
Collaborator

Summary

Renames the recently-added timeOnPage field to activeTimeOnPage in the page_events payload surfaced in the selectPlacements call.

The value is derived from the diff of consecutive activeTimeOnSite readings, so activeTimeOnPage:

  • is consistent with the neighbouring activeTimeOnSite field, and
  • is more accurate about what it measures (active time, not wall-clock time).

Changes

  • src/Rokt-Kit.tsPageEvent.timeOnPageactiveTimeOnPage (interface + buildPageEvents assignment)
  • test/src/tests.spec.ts — updated all references and it(...) descriptions

Verification

  • npm run lint
  • npm run build
  • npm run test — 228/228 passing

🤖 Generated with Claude Code

…age_events

The value is derived from the diff of consecutive activeTimeOnSite
readings, so activeTimeOnPage is both consistent with the neighbouring
activeTimeOnSite field and more accurate about what it measures.
@rmi22186
rmi22186 changed the base branch from main to development August 5, 2026 17:40
@rmi22186

rmi22186 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

updated the merge branch into development. otherwise lgtm

@alexs-mparticle
alexs-mparticle merged commit e98e095 into development Aug 5, 2026
4 of 5 checks passed
@mparticle-automation

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.30.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants