Skip to content

Clarify how host page query params reach journey_context - #142

Open
DeolaJ wants to merge 2 commits into
mainfrom
aa/url-params-journey-context
Open

Clarify how host page query params reach journey_context#142
DeolaJ wants to merge 2 commits into
mainfrom
aa/url-params-journey-context

Conversation

@DeolaJ

@DeolaJ DeolaJ commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to a support question about a web component embedding whose itellyid URL parameter never showed up in the submission's journey_context. The investigation turned up a code bug (fixed in journey-monorepo!5928) and three gaps in these docs.

Changes

embedding.md — the legacy iframe page had no Context Data section at all, even though contextData is part of its init() options and the same rules apply. Added one, covering the merge with the page's query parameters, precedence on overlapping keys, and the reserved names.

web-components.md — clarified that query parameters do not need to be declared as context parameters in the Journey Builder to reach journey_context, and listed the parameters the Journey app reserves for itself (journeyId, journeyToken, previewId, nonce, asOrganizationId, embedSource, dataInjectionOptions, mode, lang, topBar, isEmbedded, debug, preview) — these are consumed rather than forwarded, so a tracking parameter must not reuse one.

sdk.md — same clarification for .contextData().

Changelogs — a 2026-07-31 entry on all three embedding pages recording the fix. The wording differs per page because the impact did: .asWebComponent() / <epilot-journey> lost every query parameter when context data was set, while iframe embeds kept the ones declared as context parameters and lost the rest.

Nothing was added to the root CHANGELOG.md — that one is scoped to public REST APIs, entities and events, and this is embedding behaviour. Happy to add an entry there too if you'd rather have it in both places.

Test plan

  • Docs build passes
  • Anchors resolve (#context-data on all three pages)

Spell out that query params do not have to be declared as context parameters in
the Journey Builder, list the parameter names the Journey app reserves for
itself, and point integrators at the console log they can use to verify what an
embedding actually passed.

Co-authored-by: Claude <noreply@anthropic.com>
@DeolaJ
DeolaJ force-pushed the aa/url-params-journey-context branch from 5cd51ad to 414d1e8 Compare July 31, 2026 09:01
@DeolaJ DeolaJ self-assigned this Jul 31, 2026
@DeolaJ DeolaJ changed the title docs(journeys): clarify how host page query params reach journey_context Clarify how host page query params reach journey_context Jul 31, 2026
The iframe embedding page had no Context Data section at all, even though the
same merge rules and reserved parameter names apply there. Add one, and record
the fix in the changelog of all three embedding pages.

Co-authored-by: Claude <noreply@anthropic.com>
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