Skip to content

chore(release): version package - #36

Merged
multiplehats merged 1 commit into
mainfrom
changeset-release/main
Sep 15, 2026
Merged

multiplehats merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

trakoo@1.1.0

Minor Changes

  • Report the full page URL from the browser adapter so campaign parameters survive. BrowserAnalytics built its page context from window.location.pathname alone, so the query string never left the browser and every utm_source/utm_medium/utm_campaign value was dropped before delivery — campaign traffic arrived in the dashboard as direct. The adapter now also populates the url, search, host and protocol fields that EventContext["page"] already declared, from a single getPageContext() snapshot shared by initialize() and pageView(). (#37)

    updateContext() also merges the page snapshot instead of rebuilding it from path, title and referrer, which had silently discarded every other declared field. Without that, only the immediate pageView() call carried a URL — track() and pageLeave() read the stored context and still saw none. Partial page updates now merge rather than erase, and an empty search is kept as a real value so a URL with no query string cannot inherit the previous page's parameters.

    This reaches any provider that reports a URL. OpenPanel, Bento, EmitKit, Pirsch and the proxy all read context.page.url and fall back to context.page.path; until now that fallback was always taken. OpenPanel's screenView() consequently receives the full URL, which is what its own SDK sends when it tracks screen views itself, so its __path changes from a bare pathname to an absolute URL and its dashboard resolves the path and domain server-side. OpenPanel's screenView() also dedupes on the value it is handed, so two visits to one pathname under different query strings are now distinct: an app that calls pageView() when query parameters change — filters, pagination, tabs — emits one screen_view per change where it previously emitted one in total. Expect page-view counts on those routes to rise.

    Nothing new is collected — the query string was always present in the browser — but a site that puts sensitive values in query parameters now sends them to its analytics provider, so exclude those before they reach the URL.

  • Report OpenPanel delivery failures instead of dropping them. OpenPanel's SDKs answer an HTTP 401 by returning null without throwing, retrying or logging, so a wrong client ID, a rotated secret or a browser origin the project does not allow stopped analytics silently. Both OpenPanel providers now accept onDeliveryFailure and log rejections when no handler is configured. The failure reports the reason, status, attempt count, envelope type and ingestion URL, never event properties, and delivery still resolves so a rejected event never becomes an application error. (#34)

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 50eb8a5 to a0b4a83 Compare September 5, 2026 09:21
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
trakoo Ready Ready Preview Sep 15, 2026 8:25am UTC

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from a0b4a83 to 72847b7 Compare September 15, 2026 08:24
@multiplehats
multiplehats merged commit 4b3716d into main Sep 15, 2026
2 checks passed
@multiplehats
multiplehats deleted the changeset-release/main branch September 15, 2026 08:26
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