When a page receives a POST request, the body is parsed and available as request.body. Pages accept both GET and POST requests, and the same backend script runs for both, so use request.method to distinguish.
if (request.method === 'POST' && request.body) { var data = request.body; console.log('Received:', data.name);}
Both JSON (application/json) and ordinary form posts
(application/x-www-form-urlencoded) are parsed, so a plain HTML <form> can
post straight to the page that renders it:
multipart/form-data is not parsed on page routes, so a form with that
enctype (including file uploads) arrives with request.body as null.
The body handed to the script is capped at 64 KB, well below the request
size the server itself accepts. A larger payload is dropped silently:
request.body is null rather than truncated, and nothing is logged. Guard
with if (request.method === 'POST' && request.body) so a page never assumes
a body it did not get.
The current customer object from the session, or null if no customer is set. Populated after checkout or check-order login.
customer.namecustomer.emailcustomer.first_namecustomer.last_namecustomer.phonecustomer.order_idcustomer.order_ids // array of order objectscustomer.order_itemcustomer.order_item_namecustomer.conversion_codecustomer.payment_providercustomer.billing_first_namecustomer.billing_last_namecustomer.billing_addresscustomer.billing_citycustomer.billing_statecustomer.billing_zipcustomer.billing_countrycustomer.shipping_first_namecustomer.shipping_last_namecustomer.shipping_addresscustomer.shipping_citycustomer.shipping_statecustomer.shipping_zipcustomer.shipping_country
Boolean. true if the visitor has an active customer session (completed a purchase or logged in via check-order).
if (!is_customer) { redirect('/sales-page');}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ElasticFunnels.io Documentation","colors":{"primary":"#1d4ed8","light":"#1d4ed8","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/elasticfunnels-8a91cd9d/jzZf0Mv_VgYI1MJ-/logo/light.svg?fit=max\u0026auto=format\u0026n=jzZf0Mv_VgYI1MJ-\u0026q=85\u0026s=5a6223a03b81ea40e3701f2ffba293f7","dark":"https://mintcdn.com/elasticfunnels-8a91cd9d/jzZf0Mv_VgYI1MJ-/logo/light.svg?fit=max\u0026auto=format\u0026n=jzZf0Mv_VgYI1MJ-\u0026q=85\u0026s=5a6223a03b81ea40e3701f2ffba293f7"},"favicon":"https://mintcdn.com/elasticfunnels-8a91cd9d/jzZf0Mv_VgYI1MJ-/favicon.svg?fit=max\u0026auto=format\u0026n=jzZf0Mv_VgYI1MJ-\u0026q=85\u0026s=cf7ba5045160c5a44700b757e946db06","navbar":{"links":[{"href":"mailto:support@elasticfunnels.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.elasticfunnels.io"}},"footer":{"socials":{"x":"https://x.com/elasticfunnels","linkedin":"https://linkedin.com/company/elasticfunnels"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Email Support","icon":"envelope","href":"mailto:support@elasticfunnels.io"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"elasticfunnels-8a91cd9d","hasAudioNarration":false,"actualSubdomain":"elasticfunnels-8a91cd9d","customDomains":["docs.elasticfunnels.io"],"gitSource":{"type":"github","owner":"elasticfunnels","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2559bd3d703042ba3af1b","collectionId":"8a2cb951-7238-4ac3-a88f-540d821c41d3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2559bd3d703042ba3af1b"},"entitlements":{},"buildId":"6ae2559bd3d703042ba3af1b","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Guides","count":219},{"language":"default","tag":"Grow and track","count":84},{"language":"default","tag":"Build","count":54},{"language":"default","tag":"Sell","count":35},{"language":"default","tag":"Developers","count":30},{"language":"default","tag":"Integrations","count":29},{"language":"default","tag":"API Reference","count":26},{"language":"default","tag":"Emails","count":19},{"language":"default","tag":"Pages","count":18},{"language":"default","tag":"Manage","count":15}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"backend-scripts/context","slug":"/backend-scripts/context","pageMetadata":{"title":"Request Context","sidebarTitle":"Request context","icon":"globe","description":"Read-only globals available inside backend scripts: request data, customer info, and visitor details.","href":"/backend-scripts/context"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`These globals are injected automatically into every backend script execution. They are `,_jsx(_components.strong,{children:`read-only`}),` — you cannot modify them directly.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:_jsx(_components.code,{children:`request`})}),`\n`,_jsx(_components.p,{children:`Information about the current HTTP request.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // { foo: 'bar', utm_source: 'google' }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // see below`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 'GET' or 'POST'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // parsed body, JSON or form-urlencoded (POST only, null for GET, max 64 KB)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ip`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // IPv4 address, e.g. '1.2.3.4'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ip6`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // IPv6 address (if available)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // '/my-page'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cookies`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // { cookie_name: 'value' }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`is_mobile`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // true/false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`is_tablet`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // true/false`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:_jsx(_components.code,{children:`request.body`})}),`\n`,_jsxs(_components.p,{children:[`When a page receives a `,_jsx(_components.code,{children:`POST`}),` request, the body is parsed and available as `,_jsx(_components.code,{children:`request.body`}),`. Pages accept both GET and POST requests, and the same backend script runs for both, so use `,_jsx(_components.code,{children:`request.method`}),` to distinguish.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Received:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Both JSON (`,_jsx(_components.code,{children:`application/json`}),`) and ordinary form posts\n(`,_jsx(_components.code,{children:`application/x-www-form-urlencoded`}),`) are parsed, so a plain HTML `,_jsx(_components.code,{children:`\u003cform>`}),` can\npost straight to the page that renders it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Notify me`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"backend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setVariable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'submitted_email'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`email`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`multipart/form-data`}),` is `,_jsx(_components.strong,{children:`not`}),` parsed on page routes, so a form with that\n`,_jsx(_components.code,{children:`enctype`}),` (including file uploads) arrives with `,_jsx(_components.code,{children:`request.body`}),` as `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The body handed to the script is capped at `,_jsx(_components.strong,{children:`64 KB`}),`, well below the request\nsize the server itself accepts. A larger payload is dropped silently:\n`,_jsx(_components.code,{children:`request.body`}),` is `,_jsx(_components.code,{children:`null`}),` rather than truncated, and nothing is logged. Guard\nwith `,_jsx(_components.code,{children:`if (request.method === 'POST' \u0026\u0026 request.body)`}),` so a page never assumes\na body it did not get.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-headers`,children:_jsx(_components.code,{children:`request.headers`})}),`\n`,_jsx(_components.p,{children:`A subset of request headers is exposed:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Key`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user-agent`})}),_jsx(_components.td,{children:`Browser/device user-agent string`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`referer`})}),_jsx(_components.td,{children:`Referring URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`accept-language`})}),_jsx(_components.td,{children:`Visitor’s language preferences`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`host`})}),_jsx(_components.td,{children:`Domain the request was made to`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Full request headers are not exposed to prevent leaking internal infrastructure details (e.g. proxy headers, auth tokens).`})}),`\n`,_jsx(Heading,{level:`2`,id:`customer`,children:_jsx(_components.code,{children:`customer`})}),`\n`,_jsxs(_components.p,{children:[`The current customer object from the session, or `,_jsx(_components.code,{children:`null`}),` if no customer is set. Populated after checkout or check-order login.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`email`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`first_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`last_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`phone`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`order_id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`order_ids`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // array of order objects`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`order_item`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`order_item_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversion_code`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payment_provider`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_first_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_last_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_address`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_city`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_state`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_zip`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`billing_country`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_first_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_last_name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_address`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_city`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_state`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_zip`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shipping_country`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`is_customer`,children:_jsx(_components.code,{children:`is_customer`})}),`\n`,_jsxs(_components.p,{children:[`Boolean. `,_jsx(_components.code,{children:`true`}),` if the visitor has an active customer session (completed a purchase or logged in via check-order).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`is_customer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` redirect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/sales-page'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Request Context","sidebarTitle":"Request context","icon":"globe","description":"Read-only globals available inside backend scripts: request data, customer info, and visitor details.","href":"/backend-scripts/context"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"request","slug":"request","depth":2,"children":[{"title":"request.body","slug":"request-body","depth":3,"children":[]},{"title":"request.headers","slug":"request-headers","depth":3,"children":[]}]},{"title":"customer","slug":"customer","depth":2,"children":[]},{"title":"is_customer","slug":"is_customer","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"elasticfunnels-8a91cd9d","siteName":"ElasticFunnels.io Documentation","title":"Request Context - ElasticFunnels.io Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-19T14:18:02.920Z","originalFileLocation":"backend-scripts/context.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ElasticFunnels.io Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Request Context - ElasticFunnels.io Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ElasticFunnels.io Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.elasticfunnels.io/backend-scripts/context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://elasticfunnels-8a91cd9d.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Request+Context\u0026amp;description=Read-only+globals+available+inside+backend+scripts%3A+request+data%2C+customer+info%2C+and+visitor+details.\u0026amp;theme=6b02d9eb1578fbc040e30bc3\u0026amp;signature=9873b3ba79e5dc04de69be55716330119a6aae4ce4ecc54761c67655aeaaf1aa\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Request Context - ElasticFunnels.io Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://elasticfunnels-8a91cd9d.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Request+Context\u0026amp;description=Read-only+globals+available+inside+backend+scripts%3A+request+data%2C+customer+info%2C+and+visitor+details.\u0026amp;theme=6b02d9eb1578fbc040e30bc3\u0026amp;signature=9873b3ba79e5dc04de69be55716330119a6aae4ce4ecc54761c67655aeaaf1aa\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/elasticfunnels-8a91cd9d/EikUEODxg9MfyvtR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ElasticFunnels.io Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d4ed8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.elasticfunnels.io/backend-scripts/context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/backend-scripts/context.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.elasticfunnels.io/#organization\",\"name\":\"ElasticFunnels.io Documentation\",\"url\":\"https://docs.elasticfunnels.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/elasticfunnels-8a91cd9d/jzZf0Mv_VgYI1MJ-/logo/light.svg?fit=max\u0026auto=format\u0026n=jzZf0Mv_VgYI1MJ-\u0026q=85\u0026s=5a6223a03b81ea40e3701f2ffba293f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.elasticfunnels.io#website\",\"name\":\"ElasticFunnels.io Documentation\",\"url\":\"https://docs.elasticfunnels.io\",\"publisher\":{\"@id\":\"https://docs.elasticfunnels.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.elasticfunnels.io/backend-scripts/context#webpage\",\"url\":\"https://docs.elasticfunnels.io/backend-scripts/context\",\"name\":\"Request Context\",\"description\":\"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\",\"dateModified\":\"2026-08-19T14:18:02.920Z\",\"isPartOf\":{\"@id\":\"https://docs.elasticfunnels.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.elasticfunnels.io/backend-scripts/context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.elasticfunnels.io/backend-scripts/context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Developers\",\"item\":\"https://docs.elasticfunnels.io/debugging/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backend scripts\",\"item\":\"https://docs.elasticfunnels.io/backend-scripts/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Request Context\",\"item\":\"https://docs.elasticfunnels.io/backend-scripts/context\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.elasticfunnels.io/backend-scripts/context#article\",\"headline\":\"Request Context\",\"name\":\"Request Context\",\"description\":\"Read-only globals available inside backend scripts: request data, customer info, and visitor details.\",\"url\":\"https://docs.elasticfunnels.io/backend-scripts/context\",\"mainEntityOfPage\":{\"@id\":\"https://docs.elasticfunnels.io/backend-scripts/context#webpage\"},\"dateModified\":\"2026-08-19T14:18:02.920Z\",\"publisher\":{\"@id\":\"https://docs.elasticfunnels.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.elasticfunnels.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ElasticFunnels.io Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ElasticFunnels.io Documentation","nav":{"global":{"anchors":[{"anchor":"Email Support","icon":"envelope","href":"mailto:support@elasticfunnels.io"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Introduction","icon":"house","href":""}]},{"group":"Build","icon":"hammer","pages":[{"group":"Template kits","icon":"swatchbook","pages":[{"title":"Template kits","sidebarTitle":"Overview","icon":"book-open","href":"/template-kits/overview"},{"title":"Apply a kit","icon":"wand-magic-sparkles","href":"/template-kits/apply-a-kit"},{"title":"After applying a kit","sidebarTitle":"After applying","icon":"list-check","href":"/template-kits/after-applying"},{"title":"Kit images","icon":"image","href":"/template-kits/kit-images"},{"title":"Customise a kit with AI","sidebarTitle":"AI customising","icon":"sparkles","href":"/template-kits/ai-customise"},{"title":"Template kit troubleshooting","sidebarTitle":"Troubleshooting","icon":"wrench","href":"/template-kits/troubleshooting"},{"title":"Template kit glossary","sidebarTitle":"Glossary","icon":"book","href":"/template-kits/glossary"}]},{"group":"Pages","icon":"file-lines","pages":[{"title":"Pages Overview","sidebarTitle":"Overview","icon":"book-open","href":"/pages/overview"},{"title":"Create Landing Page","sidebarTitle":"Create a landing page","icon":"file-circle-plus","href":"/pages/create-landing-page"},{"title":"Page Settings","sidebarTitle":"Page settings","icon":"sliders","href":"/pages/page-settings"},{"title":"Wildcard routes","icon":"asterisk","href":"/pages/wildcard-routes"},{"title":"SEO: sitemap.xml, robots.txt and llms.txt","sidebarTitle":"SEO and llms.txt","icon":"magnifying-glass","href":"/pages/seo"},{"title":"Privacy \u0026 consent","icon":"cookie-bite","href":"/pages/privacy-consent"},{"title":"Rendering pipeline","icon":"gears","href":"/pages/rendering-pipeline"},{"group":"Variants and revisions","icon":"code-branch","pages":[{"title":"Page Variants","sidebarTitle":"Page variants","icon":"clone","href":"/pages/page-variants"},{"title":"Page Revisions","sidebarTitle":"Page revisions","icon":"clock-rotate-left","href":"/pages/page-revisions"},{"title":"Content Visibility Control","sidebarTitle":"Content visibility","icon":"eye","href":"/pages/visitor-based-content"}]},{"group":"Page elements","icon":"shapes","pages":[{"title":"Interactions Panel","sidebarTitle":"Interactions panel","icon":"hand-pointer","href":"/pages/interactions-panel"},{"title":"Containers","icon":"box-open","href":"/pages/containers"},{"title":"Page Variables \u0026 Placeholders","sidebarTitle":"Variables and placeholders","icon":"brackets-curly","href":"/pages/page-variables"},{"title":"Internationalization (i18n)","sidebarTitle":"Translations (i18n)","icon":"language","href":"/pages/internationalization"}]},{"group":"Store tags","icon":"tags","pages":[{"title":"Order Tag","sidebarTitle":"Order tag","icon":"receipt","href":"/pages/order-tag"},{"title":"Product Item Tag","sidebarTitle":"Product item tag","icon":"tag","href":"/pages/product-item-tag"},{"title":"Collection Item Tag","sidebarTitle":"Collection item tag","icon":"layer-group","href":"/pages/collection-item-tag"},{"title":"Cart","icon":"cart-shopping","href":"/pages/cart"}]}]},{"group":"Funnels","icon":"filter","pages":[{"title":"Create a Funnel","sidebarTitle":"Create a funnel","icon":"circle-plus","href":"/funnels/create-funnel"},{"title":"Trigger Pages","sidebarTitle":"Trigger pages","icon":"file-import","href":"/funnels/trigger-pages"},{"title":"Trigger Rules","sidebarTitle":"Trigger rules","icon":"code-fork","href":"/funnels/trigger-rules"},{"title":"Checkout Redirect Behavior","sidebarTitle":"Checkout redirects","icon":"arrow-right-arrow-left","href":"/funnels/checkout-redirect-behavior"}]},{"group":"Page events","icon":"diagram-project","pages":[{"title":"Page Events","sidebarTitle":"Overview","icon":"book-open","href":"/funnels/page-events"},{"title":"Page Events Node Reference","sidebarTitle":"Node reference","icon":"circle-nodes","href":"/funnels/page-events-nodes"},{"group":"Event types","icon":"bolt","pages":[{"title":"Script Rule","sidebarTitle":"Script rule","icon":"scroll","href":"/funnels/script-rule"},{"title":"EF API (window.ef)","icon":"code","href":"/funnels/window-api"},{"title":"Dynamic Content","sidebarTitle":"Dynamic content","icon":"shuffle","href":"/funnels/dynamic-content"},{"title":"Exit Popups","sidebarTitle":"Exit popups","icon":"door-open","href":"/funnels/exit-popups"},{"title":"Popups and interactions from code","sidebarTitle":"Popups from code","icon":"window-restore","href":"/funnels/popups-from-code"}]},{"group":"Routing","icon":"route","pages":[{"title":"Query Parameter Conditions","sidebarTitle":"Query parameters","icon":"link","href":"/funnels/query-parameters"},{"title":"Sequence Nodes","sidebarTitle":"Sequence nodes","icon":"list-ol","href":"/funnels/sequence-nodes"}]}]},{"group":"Quizzes","icon":"circle-question","pages":[{"title":"Build and Publish a Quiz","sidebarTitle":"Build and publish","icon":"hammer","href":"/quizzes/build-and-publish"},{"title":"Quiz Blocks and Answers","sidebarTitle":"Blocks and answers","icon":"cubes","href":"/quizzes/blocks-and-answers"},{"title":"Design a Quiz Page Intro","sidebarTitle":"Page intro","icon":"window-maximize","href":"/quizzes/page-intro"}]},{"group":"Forms","icon":"clipboard-list","pages":[{"title":"Lead Capture Forms","sidebarTitle":"Lead capture forms","icon":"user-plus","href":"/forms/lead-capture"},{"title":"Add a form to a page with code","sidebarTitle":"Forms in code","icon":"code","href":"/forms/forms-in-code"},{"title":"Thank You Pages","sidebarTitle":"Thank you pages","icon":"heart","href":"/forms/thank-you-pages"},{"title":"Export Collection Data","sidebarTitle":"Export form data","icon":"file-export","href":"/forms/export-data"}]},{"group":"Members area","icon":"id-card","pages":[{"title":"Members Area","sidebarTitle":"Overview","icon":"book-open","href":"/members-area/overview"},{"title":"Members Login","sidebarTitle":"Members login","icon":"right-to-bracket","href":"/members-area/login"},{"title":"Showing Order Details","sidebarTitle":"Order details","icon":"receipt","href":"/members-area/order-details"},{"title":"Subscription Management Page","sidebarTitle":"Manage subscriptions","icon":"arrows-rotate","href":"/members-area/subscription-management"},{"title":"Customer Care Portal","sidebarTitle":"Customer care portal","icon":"headset","href":"/members-area/customer-care"}]},{"group":"Courses","icon":"graduation-cap","pages":[{"title":"Courses","sidebarTitle":"Overview","icon":"book-open","href":"/courses/overview"},{"title":"Course pages","icon":"chalkboard-user","href":"/courses/student-pages"},{"title":"Courses on your own pages","sidebarTitle":"Courses on your pages","icon":"file-code","href":"/courses/own-pages"},{"title":"Courses — Template Reference","sidebarTitle":"Template reference","icon":"code","href":"/courses/template"}]}]},{"group":"Sell","icon":"cart-shopping","pages":[{"group":"Products","icon":"box","pages":[{"title":"Product Management","sidebarTitle":"Manage products","icon":"boxes-stacked","href":"/products/product-management"},{"title":"Product Folders","sidebarTitle":"Product folders","icon":"folder","href":"/products/product-folders"},{"title":"Product Variants","sidebarTitle":"Variants","icon":"palette","href":"/products/variants"},{"title":"Product Attributes","sidebarTitle":"Attributes","icon":"list","href":"/products/product-attributes"},{"title":"Custom Product Attributes (Legacy)","sidebarTitle":"Custom attributes (legacy)","icon":"box-archive","href":"/products/custom-attributes"},{"title":"Buy Links","sidebarTitle":"Buy links","icon":"link","href":"/products/buy-links"},{"title":"Advanced Purchase Links","sidebarTitle":"Advanced purchase links","icon":"square-share-nodes","href":"/products/advanced-purchase-links"}]},{"group":"Checkouts","icon":"credit-card","pages":[{"title":"How to design a checkout page","sidebarTitle":"Design a checkout page","icon":"pen-ruler","href":"/guides/how-to-design-a-checkout-page"},{"title":"Checkout functionality reference","sidebarTitle":"Checkout reference","icon":"book","href":"/checkouts/checkout-functionality-reference"},{"title":"Package selector","icon":"table-cells-large","href":"/checkouts/package-selector"}]},{"group":"Upsells","icon":"arrow-trend-up","pages":[{"title":"Upsells","icon":"arrow-up-right-dots","href":"/products/upsells"},{"title":"Subscription Upsells","sidebarTitle":"Subscription upsells","icon":"arrows-rotate","href":"/products/subscription-upsells"},{"title":"Upsell Forms (Gift Address and Custom Fields)","href":"/products/upsell-forms"}]},{"group":"Merchants","icon":"building-columns","pages":[{"title":"How to set up a new merchant","sidebarTitle":"Set up a merchant","icon":"circle-plus","href":"/guides/how-to-set-up-a-new-merchant"},{"title":"High-Risk Merchants and Merchant Accounts","sidebarTitle":"High-risk merchant accounts","icon":"triangle-exclamation","href":"/merchants/high-risk-and-merchant-accounts"},{"title":"Postback URLs","icon":"arrow-right-arrow-left","href":"/merchants/postback-urls"},{"title":"Test merchant (sandbox)","sidebarTitle":"Test merchant","icon":"vial","href":"/merchants/test-merchant"},{"group":"Merchant platforms","icon":"store","pages":[{"title":"ClickBank","icon":"store","href":"/merchants/clickbank"},{"title":"BuyGoods","sidebarTitle":"BuyGoods","icon":"store","href":"/merchants/buygoods"},{"title":"Digistore24","icon":"store","href":"/merchants/digistore24"},{"title":"JVZoo","icon":"store","href":"/merchants/jvzoo"},{"title":"Explodely","icon":"store","href":"/merchants/explodely"},{"title":"Shopify Checkout","icon":"shopify","href":"/merchants/shopify-checkout"}]},{"group":"Express checkout","icon":"bolt","pages":[{"title":"Shop Pay","icon":"shopify","href":"/merchants/shop-pay"},{"title":"PayPal","icon":"paypal","href":"/merchants/paypal"},{"title":"Apple Pay and Google Pay","icon":"wallet","href":"/merchants/apple-pay-google-pay"}]}]},{"group":"Subscriptions","icon":"arrows-rotate","pages":[{"title":"Subscriptions Overview","sidebarTitle":"Overview","icon":"book-open","href":"/subscriptions/overview"},{"title":"Subscription Emails \u0026 Dunning","sidebarTitle":"Emails and dunning","icon":"envelope","href":"/subscriptions/emails-and-dunning"},{"title":"Subscription Analytics","sidebarTitle":"Subscription analytics","icon":"chart-line","href":"/subscriptions/analytics"},{"title":"Retention Offers","sidebarTitle":"Retention offers","icon":"hand-holding-heart","href":"/subscriptions/retention-offers"}]},{"group":"Orders and fulfillment","icon":"truck","pages":[{"title":"Fulfillment Integration","sidebarTitle":"Fulfillment","icon":"truck-fast","href":"/integrations/fulfillment"},{"title":"Shopify Order Sync","sidebarTitle":"Shopify order sync","icon":"shopify","href":"/integrations/shopify-order-sync"},{"title":"Sales Tax Integrations","sidebarTitle":"Sales tax","icon":"percent","href":"/integrations/tax"},{"title":"External Call Center Integrations","sidebarTitle":"Call centers","icon":"headset","href":"/integrations/callcenters"},{"title":"Chargeback Management","sidebarTitle":"Chargeback management","icon":"shield-halved","href":"/integrations/chargeback-management"}]}]},{"group":"Grow and track","icon":"chart-line","pages":[{"group":"Analytics","icon":"chart-pie","pages":[{"title":"Custom dashboards and presets","sidebarTitle":"Dashboards and presets","icon":"table-columns","href":"/analytics/custom-dashboards"},{"title":"Conversion Metrics","sidebarTitle":"Conversion metrics","icon":"money-bill-trend-up","href":"/analytics/conversions"},{"title":"Ad Spend Metrics","sidebarTitle":"Ad spend metrics","icon":"sack-dollar","href":"/analytics/ad-spend-metrics"},{"title":"Tracking Metrics","sidebarTitle":"Tracking metrics","icon":"location-crosshairs","href":"/analytics/tracking-metrics"},{"title":"Video Metrics","sidebarTitle":"Video metrics","icon":"circle-play","href":"/analytics/video-metrics"}]},{"group":"Split testing","icon":"flask","pages":[{"title":"Funnel Split Testing","sidebarTitle":"Funnel split tests","icon":"filter","href":"/funnels/funnel-split-testing"},{"title":"Split Testing","sidebarTitle":"Split test node","icon":"code-branch","href":"/funnels/split-testing"},{"title":"Split Test Analytics","sidebarTitle":"Split test results","icon":"chart-simple","href":"/analytics/split-test"},{"title":"Automation Split Tests","href":"/analytics/automation-split-tests"},{"title":"A/B Testing a Campaign","sidebarTitle":"Campaign A/B tests","icon":"envelope-open-text","href":"/campaigns/ab-testing"}]},{"group":"Campaigns","icon":"bullhorn","pages":[{"title":"Email Campaigns","sidebarTitle":"Email campaigns","icon":"envelope","href":"/campaigns/email-campaigns"},{"title":"SMS Campaigns","sidebarTitle":"SMS campaigns","icon":"comment-sms","href":"/campaigns/sms-campaigns"}]},{"group":"Contacts","icon":"address-book","pages":[{"title":"Contacts","href":"/contacts/overview"},{"title":"Merging and duplicates","href":"/contacts/merge-and-duplicates"},{"title":"Importing Contacts","sidebarTitle":"Import contacts","icon":"file-import","href":"/contacts/import"}]},{"group":"Audiences","icon":"users","pages":[{"title":"Audience Actions","sidebarTitle":"Audience actions","icon":"user-check","href":"/analytics/audience-actions"},{"title":"Audiences: identity match rules","href":"/analytics/audience-identity-matches"}]},{"group":"Affiliates","icon":"handshake","pages":[{"title":"Internal affiliates and the affiliate portal","sidebarTitle":"Internal affiliates","icon":"handshake","href":"/affiliates/internal-affiliates"},{"title":"Affiliate Postback URLs","sidebarTitle":"Affiliate postback URLs","icon":"arrow-right-arrow-left","href":"/affiliates/postback-urls"},{"group":"Affiliate portal","icon":"door-open","pages":[{"title":"Affiliate portal","sidebarTitle":"Overview","icon":"door-open","href":"/affiliate-portal/overview"},{"title":"Set up the affiliate portal","sidebarTitle":"Set up the portal","icon":"globe","href":"/affiliate-portal/set-up"},{"title":"Brands on the portal","sidebarTitle":"Brands","icon":"layer-group","href":"/affiliate-portal/brands"},{"title":"Manage portal affiliates","sidebarTitle":"Affiliates","icon":"users","href":"/affiliate-portal/affiliates"},{"title":"Commissions and payouts","sidebarTitle":"Commissions and payouts","icon":"money-check-dollar","href":"/affiliate-portal/payouts"},{"title":"Assets for affiliates","sidebarTitle":"Assets","icon":"photo-film","href":"/affiliate-portal/assets"},{"title":"Brand the portal and its emails","sidebarTitle":"Branding and emails","icon":"palette","href":"/affiliate-portal/branding"},{"title":"Who can manage the affiliate portal","sidebarTitle":"Permissions","icon":"user-shield","href":"/affiliate-portal/permissions"},{"group":"What affiliates see","icon":"eye","pages":[{"title":"Sign-up and sign-in on the portal","sidebarTitle":"Sign-up and sign-in","icon":"right-to-bracket","href":"/affiliate-portal/affiliate-sign-up"},{"title":"Dashboard and reports on the portal","sidebarTitle":"Dashboard and reports","icon":"chart-line","href":"/affiliate-portal/affiliate-dashboard"},{"title":"Tracking links and resources on the portal","sidebarTitle":"Links and resources","icon":"link","href":"/affiliate-portal/affiliate-links"},{"title":"Payouts and payout details on the portal","sidebarTitle":"Payouts","icon":"wallet","href":"/affiliate-portal/affiliate-payouts"},{"title":"Affiliates' own pixels and postbacks","sidebarTitle":"Tracking and postbacks","icon":"satellite-dish","href":"/affiliate-portal/affiliate-tracking"}]}]}]},{"group":"Emails","icon":"envelope","pages":[{"title":"Emails","sidebarTitle":"Overview","icon":"book-open","href":"/emails/overview"},{"title":"Building an email","sidebarTitle":"Build an email","icon":"pen-to-square","href":"/emails/builder"},{"title":"Template Variables","sidebarTitle":"Template variables","icon":"brackets-curly","href":"/emails/template-variables"},{"group":"Sending","icon":"paper-plane","pages":[{"title":"Sending Setup","sidebarTitle":"Sending setup","icon":"gear","href":"/emails/sending-setup"},{"title":"Email Sending Accounts","sidebarTitle":"Sending accounts","icon":"at","href":"/emails/sending-accounts"},{"title":"Delivery Events","sidebarTitle":"Delivery events","icon":"inbox","href":"/emails/delivery-events"},{"title":"Emails Not Sending","sidebarTitle":"Emails not sending","icon":"triangle-exclamation","href":"/emails/troubleshooting"},{"group":"Provider keys","pages":[{"title":"Where to find your Mailgun API key and webhook signing key","sidebarTitle":"Mailgun","href":"/emails/provider-keys/mailgun"},{"title":"Where to find your SendGrid API key and verification key","sidebarTitle":"SendGrid","href":"/emails/provider-keys/sendgrid"},{"title":"Where to find your Amazon SES access key","sidebarTitle":"Amazon SES","href":"/emails/provider-keys/amazon-ses"},{"title":"Where to find your Postmark server API token","sidebarTitle":"Postmark","href":"/emails/provider-keys/postmark"},{"title":"Where to find your Brevo API key","sidebarTitle":"Brevo","href":"/emails/provider-keys/brevo"},{"title":"Where to find your Resend API key and webhook signing secret","sidebarTitle":"Resend","href":"/emails/provider-keys/resend"},{"title":"Where to find your Mailrelay SMTP settings","sidebarTitle":"Mailrelay","href":"/emails/provider-keys/mailrelay"}]}]},{"group":"Automatic emails","icon":"envelopes-bulk","pages":[{"title":"Order Emails","sidebarTitle":"Order emails","icon":"receipt","href":"/emails/order-emails"},{"title":"Subscription Emails","sidebarTitle":"Subscription emails","icon":"arrows-rotate","href":"/emails/subscription-emails"},{"title":"Dunning","icon":"credit-card","href":"/emails/dunning"},{"title":"Course Emails","sidebarTitle":"Course emails","icon":"graduation-cap","href":"/emails/course-emails"},{"title":"Login Emails","sidebarTitle":"Login emails","icon":"key","href":"/emails/login-emails"}]}]},{"group":"Automations","icon":"robot","pages":[{"title":"Use data from earlier steps","sidebarTitle":"Data from earlier steps","icon":"brackets-curly","href":"/automations/variables"},{"title":"Send Email Step","sidebarTitle":"Send email step","icon":"paper-plane","href":"/automations/send-email"},{"title":"Send SMS Step","sidebarTitle":"Send SMS step","icon":"comment-sms","href":"/automations/send-sms"},{"title":"Automation Run History","sidebarTitle":"Run history","icon":"clock-rotate-left","href":"/automations/run-history"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"Connect and remove integrations","sidebarTitle":"Connect integrations","icon":"plug-circle-plus","href":"/integrations/connect"},{"title":"Integration activity, errors and presets","sidebarTitle":"Activity and errors","icon":"heart-pulse","href":"/integrations/integration-health"},{"group":"Ad platforms","icon":"bullhorn","pages":[{"title":"Meta Ads Integration","sidebarTitle":"Meta Ads","icon":"meta","href":"/integrations/meta-ads"},{"title":"Campaigns Management","sidebarTitle":"Campaigns management","icon":"sliders","href":"/integrations/campaigns-management"},{"title":"Google Ads Integration","sidebarTitle":"Google Ads","icon":"google","href":"/integrations/google-ads"},{"title":"Taboola Integration","sidebarTitle":"Taboola","icon":"rectangle-ad","href":"/integrations/taboola"}]},{"group":"Affiliate networks and attribution","icon":"share-nodes","pages":[{"title":"Affiliate Tracking","sidebarTitle":"Affiliate tracking","icon":"handshake","href":"/integrations/affiliate-tracking"},{"title":"Buygoods Integration","sidebarTitle":"BuyGoods","icon":"store","href":"/integrations/buygoods"},{"title":"Clickbank Integration","sidebarTitle":"ClickBank","icon":"store","href":"/integrations/clickbank"},{"title":"JVZoo Integration","sidebarTitle":"JVZoo","icon":"store","href":"/integrations/jvzoo"},{"title":"Everflow Integration","sidebarTitle":"Everflow","icon":"diagram-successor","href":"/integrations/everflow"},{"title":"RedTrack Integration","sidebarTitle":"RedTrack","icon":"location-crosshairs","href":"/integrations/redtrack"}]},{"group":"Email and CRM","icon":"address-book","pages":[{"title":"Email Marketing \u0026 Validation Integrations","sidebarTitle":"Email marketing","icon":"envelope-open-text","href":"/integrations/email-marketing"},{"title":"Maropost Integration","sidebarTitle":"Maropost","icon":"envelope","href":"/integrations/maropost"},{"title":"External CRM Integrations","sidebarTitle":"External CRMs","icon":"address-card","href":"/integrations/crm"}]},{"group":"AI and messaging","icon":"comments","pages":[{"title":"AI Providers (BYO key)","sidebarTitle":"AI providers","icon":"wand-magic-sparkles","href":"/integrations/ai-providers"},{"title":"Twilio Integration","sidebarTitle":"Twilio","icon":"comment-sms","href":"/integrations/twilio"},{"title":"Plivo Integration","sidebarTitle":"Plivo","icon":"comment-sms","href":"/integrations/plivo"},{"title":"Telnyx Integration","sidebarTitle":"Telnyx","icon":"comment-sms","href":"/integrations/telnyx"},{"title":"SMS Compliance","sidebarTitle":"SMS compliance","icon":"shield-check","href":"/settings/sms"},{"group":"SMS provider keys","pages":[{"title":"Where to find your Twilio Account SID and API key","sidebarTitle":"Twilio","href":"/emails/provider-keys/twilio"},{"title":"Where to find your Plivo Auth ID and Auth Token","sidebarTitle":"Plivo","href":"/emails/provider-keys/plivo"},{"title":"Where to find your Telnyx API key and public key","sidebarTitle":"Telnyx","href":"/emails/provider-keys/telnyx"},{"title":"Where to find your SlickText API key","sidebarTitle":"SlickText","href":"/emails/provider-keys/slicktext"}]},{"title":"SlickText Integration","sidebarTitle":"SlickText","icon":"message","href":"/integrations/slicktext"},{"title":"Attentive Integration","sidebarTitle":"Attentive","icon":"message","href":"/integrations/attentive"}]},{"group":"Data and video","icon":"database","pages":[{"title":"Google Analytics Integration","sidebarTitle":"Google Analytics","icon":"chart-line","href":"/integrations/google-analytics"},{"title":"Google Sheets Integration","sidebarTitle":"Google Sheets","icon":"table","href":"/integrations/google-sheets"},{"title":"TrackPlay Video Player","sidebarTitle":"TrackPlay","icon":"circle-play","href":"/integrations/trackplay"}]}]}]},{"group":"Manage","icon":"gear","pages":[{"title":"Brand Actions \u0026 Alerts","sidebarTitle":"Brand actions and alerts","icon":"bell","href":"/essentials/brand-actions"},{"title":"Alerts","sidebarTitle":"Alerts","icon":"triangle-exclamation","href":"/essentials/alerts"},{"group":"Account and security","icon":"shield-halved","pages":[{"title":"Two-factor authentication","icon":"mobile-screen","href":"/account/two-factor-authentication"},{"title":"Passkeys","icon":"fingerprint","href":"/account/passkeys"},{"title":"Connect the ef CLI and create API keys","sidebarTitle":"CLI and API keys","icon":"key","href":"/account/cli-and-api-keys"},{"title":"Audiences and campaigns from the ef CLI","sidebarTitle":"CLI: audiences and campaigns","icon":"terminal","href":"/account/cli-audiences-and-campaigns"},{"title":"Refer \u0026 Earn","icon":"gift","href":"/account/refer-and-earn"},{"title":"AI credits","icon":"sparkles","href":"/account/ai-credits"}]},{"group":"Team and permissions","icon":"user-shield","pages":[{"title":"Roles, permissions, and metrics","sidebarTitle":"Roles and permissions","icon":"user-gear","href":"/essentials/roles-permissions-metrics"},{"title":"Permission matrix","icon":"table-cells","href":"/essentials/permission-matrix"},{"title":"Restricted role troubleshooting","icon":"wrench","href":"/essentials/restricted-role-troubleshooting"}]},{"group":"Domains","icon":"globe","pages":[{"title":"Custom Domains \u0026 SSL","sidebarTitle":"Custom domains and SSL","icon":"globe","href":"/domains/custom-domains"},{"title":"Page Customization","sidebarTitle":"Fonts and colors","icon":"paintbrush","href":"/domains/customization"},{"title":"Domain-Level Whitelisting","sidebarTitle":"Domain whitelisting","icon":"list-check","href":"/domains/whitelisting"},{"title":"reCAPTCHA Setup","sidebarTitle":"reCAPTCHA","icon":"robot","href":"/domains/recaptcha-setup"}]}]},{"group":"Developers","icon":"code","pages":[{"group":"Debugging","icon":"bug","pages":[{"title":"Development \u0026 Debugging","sidebarTitle":"Overview","icon":"code","href":"/debugging/overview"},{"title":"Debug Window","sidebarTitle":"Debug window","icon":"bug","href":"/debugging/debug-window"}]},{"group":"Frontend template engine","icon":"brackets-curly","pages":[{"title":"Overview","icon":"book-open","href":"/frontend-template-engine/overview"},{"title":"Syntax","icon":"code","href":"/frontend-template-engine/syntax"},{"group":"Data and bindings","icon":"database","pages":[{"title":"Scope \u0026 Data","icon":"sitemap","href":"/frontend-template-engine/scope-and-data"},{"title":"Bindings \u0026 Events","icon":"link","href":"/frontend-template-engine/bindings-forms-events"},{"title":"Functions","icon":"function","href":"/frontend-template-engine/built-in-functions"}]},{"group":"Store","icon":"cart-shopping","pages":[{"title":"Cart","icon":"cart-shopping","href":"/frontend-template-engine/cart"},{"title":"Checkout","icon":"credit-card","href":"/frontend-template-engine/checkout"}]},{"group":"Advanced","icon":"screwdriver-wrench","pages":[{"title":"Limitations","icon":"triangle-exclamation","href":"/frontend-template-engine/limitations-pitfalls"},{"title":"Debugging","icon":"bug","href":"/frontend-template-engine/debugging"}]}]},{"group":"Backend template engine","icon":"server","pages":[{"title":"Overview","icon":"book-open","href":"/backend-template-engine/overview"},{"title":"Directives","icon":"code","href":"/backend-template-engine/directives"},{"title":"Variables and filters","icon":"filter","href":"/backend-template-engine/variables-and-filters"},{"title":"Products, categories \u0026 shipping (backend)","sidebarTitle":"Products and shipping","icon":"truck","href":"/backend-template-engine/products-and-shipping"}]},{"group":"Backend scripts","icon":"terminal","pages":[{"title":"Backend Scripts","sidebarTitle":"Overview","icon":"book-open","href":"/backend-scripts/overview"},{"title":"Imports","icon":"file-import","description":"Share and reuse code between backend scripts by importing from other pages.","href":"/backend-scripts/imports"},{"group":"Reference","icon":"book","pages":[{"title":"Request Context","sidebarTitle":"Request context","icon":"globe","href":"/backend-scripts/context"},{"title":"Actions","icon":"bolt","description":"Side-effect functions: session, cookies, redirects, response control, headers, and template variables.","href":"/backend-scripts/actions"},{"title":"Tags","icon":"tags","href":"/backend-scripts/tags"},{"title":"Data Functions","sidebarTitle":"Data functions","icon":"database","href":"/backend-scripts/data-functions"},{"title":"Schema Validator","sidebarTitle":"Schema validator","icon":"check-double","href":"/backend-scripts/validation"},{"title":"HTTP Requests","sidebarTitle":"HTTP requests","icon":"cloud-arrow-up","href":"/backend-scripts/http"},{"title":"Secrets","sidebarTitle":"Secrets","icon":"key","href":"/backend-scripts/secrets"},{"title":"Cache","icon":"bolt-lightning","href":"/backend-scripts/cache"},{"title":"Queue","icon":"list-ol","href":"/backend-scripts/queue"},{"title":"Storage","icon":"hard-drive","href":"/backend-scripts/storage"}]},{"title":"Examples","icon":"lightbulb","href":"/backend-scripts/examples"}]},{"group":"Custom CRM data","icon":"address-book","pages":[{"title":"CRM Overview","sidebarTitle":"CRM overview","icon":"book-open","href":"/crm/overview"},{"title":"Building Custom Workflows","sidebarTitle":"Custom workflows","icon":"diagram-next","href":"/crm/post-workflow"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"title":"Request Context - ElasticFunnels.io Documentation","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":[],"chunks":[]}