diff --git a/docs/journeys/post-qualification.md b/docs/journeys/post-qualification.md index bf770fd..2917631 100644 --- a/docs/journeys/post-qualification.md +++ b/docs/journeys/post-qualification.md @@ -61,7 +61,7 @@ const epilotData = Object.fromEntries(epilotUrlSearchParams.entries()) Then, we need to pass the epilotData variable to the journeys option key contextData like: ```html -__epilot.init([{journeyId: "", mode: "full-screen", scrollToTop: true, topBar: true, lang: "en", contextData: epilotData}]) +__epilot.init([{contextData: epilotData, journeyId: "", mode: "full-screen", scrollToTop: true, topBar: true, lang: "en"}]) ``` **Full example code:** @@ -73,7 +73,7 @@ __epilot.init([{journeyId: "", mode: "full-screen", scrollToTop const epilotQueryString = window.location.search const epilotUrlSearchParams = new URLSearchParams(epilotQueryString) const epilotData = Object.fromEntries(epilotUrlSearchParams.entries()) - __epilot.init([{journeyId: "", mode: "full-screen", scrollToTop: true, topBar: true, lang: "en", contextData: epilotData}]) + __epilot.init([{contextData: epilotData, journeyId: "", mode: "full-screen", scrollToTop: true, topBar: true, lang: "en"}]) ```