Skip to content

Commit 598c316

Browse files
Move visitor_id into partner_metadata (widget strips partner_donation_id)
Every.org widget forwards partner_metadata but drops partner_donation_id from the final URL. Putting visitor_id inside the metadata JSON ensures it reaches Every.org and appears in the CSV. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 66273d1 commit 598c316

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/layouts/Layout.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ import { OpenPanelComponent } from '@openpanel/astro';
332332
// — the widget reads params from href at init time
333333
const urlParams = new URLSearchParams(window.location.search);
334334
const metadata = {
335+
visitor_id: window.__oseVisitorId,
335336
source_page: window.location.pathname,
336337
entry_page: sessionStorage.getItem('ose_entry') || window.location.pathname,
337338
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,

0 commit comments

Comments
 (0)