Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 26, 2023
1 parent 3e2004e commit dd52053
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/browser/src/core/page/add-page-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { getDefaultPageContext, PageContext } from './get-page-context'

/**
*
* Adds information about the current page to context.
* URL changes frequently, so this is meant to be captured as close to the event call as possible.
* Augments a segment event with information about the current page.
* Page information like URL changes frequently, so this is meant to be captured as close to the event call as possible.
* Things like `userAgent` do not change, so they can be augmented later in the flow.
*/
export const addPageContext = (
event: SegmentEvent,
Expand Down

0 comments on commit dd52053

Please sign in to comment.