Skip to content

Commit

Permalink
add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Apr 17, 2023
1 parent ab86f63 commit e7e3d75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .changeset/red-ears-sleep.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
'@segment/analytics-next': patch
---

Fixes a bug where users who override page properties:
Fixes a utm-parameter parsing bug where overridden page.search properties would not be reflected in the context.campaign object
```ts
analytics.page(undefined, undefined, {search: "?utm_source=123&utm_content=content" )
analytics.track("foo", {url: "....", search: "?utm_source=123&utm_content=content" )

// should result in a context.campaign of:
{ source: 123, content: 'content'}
```
...would get the wrong context.campaign object.

0 comments on commit e7e3d75

Please sign in to comment.