Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.
iOS 4.4.2+Android 4.4.2+React Native 3.4.3+Flutter 3.3.3+Paywall traits are values passed into a paywall upon presentation, allowing your paywall to display or behave differently depending on those values.This must be configured in two places:
Your paywall via the paywall editor
Your app by passing in values to the Helium mobile SDK
Paywall Editor
Open the paywall editor from the Helium dashboard. Type something like
use a paywall trait with key "name" to display a customized greeting
You MUST provide a default value or behavior for each trait, in case the app does not pass in a value.
Pass in from the SDK
By default, user traits will automatically be included as custom paywall traits in all of your paywalls. (Just make sure your SDK version is higher than what’s listed at the top of this page.)To pass in additional paywall traits during paywall presentation, use the customPaywallTraits parameter.
If you want to evaluate the effects of different traits in your paywall, utilize user traits in your SDK integration.Helium does not currently support the use ofcustomPaywallTraits (passed during paywall presentation) as metrics filters.User traits can also be used for targeting.
What if I set both?
If the same key is present in both user traits and customPaywallTraits, the paywall will see the value from customPaywallTraits.Metrics still only sees the value from user traits.
Coming Soon
We are working on adding default traits you can use without passing in from SDK.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Helium Docs","description":"Helium is a remote paywall platform for iOS, Android, React Native and Flutter apps: design and edit paywalls without app updates, run A/B tests and targeting, add Stripe or Paddle web checkout (App2Web), and track revenue. These docs cover the mobile SDKs, the dashboard, web checkout, testing and rollout, revenue tracking and analytics forwarding, the Data Access API, and the Helium MCP server.","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/helium/U18KGdYMLV66ysHe/logo/LargeLogo-cropped.svg?fit=max\u0026auto=format\u0026n=U18KGdYMLV66ysHe\u0026q=85\u0026s=28f7b3f657020cdb7d186e538b5f094f","dark":"https://mintcdn.com/helium/U18KGdYMLV66ysHe/logo/LargeLogo-cropped.svg?fit=max\u0026auto=format\u0026n=U18KGdYMLV66ysHe\u0026q=85\u0026s=28f7b3f657020cdb7d186e538b5f094f","href":"https://tryhelium.com"},"favicon":"https://mintcdn.com/helium/U18KGdYMLV66ysHe/favicon.svg?fit=max\u0026auto=format\u0026n=U18KGdYMLV66ysHe\u0026q=85\u0026s=03450fb9a1c51416890faea69e619d90","navbar":{"links":[{"href":"https://app.tryhelium.com","label":"Dashboard"},{"href":"https://cal.com/team/helium/20-minute-helium-demo","label":"Schedule demo"}],"primary":{"type":"button","label":"Sign up","href":"https://auth.tryhelium.com/signup?utm_source=docs\u0026utm_medium=navbar"}},"search":{"prompt":"Search Helium docs..."},"seo":{"metatags":{"og:site_name":"Helium Docs","twitter:card":"summary_large_image"},"indexing":"navigable"},"contextual":{"options":["copy","view","mcp","cursor","vscode","chatgpt","claude",{"title":"Sign up for Helium","description":"Create a free Helium account and build your first paywall","icon":"rocket","href":{"base":"https://auth.tryhelium.com/signup","query":[{"key":"utm_source","value":"docs"},{"key":"utm_medium","value":"toc"},{"key":"doc","value":"$path"}]}}],"display":"toc"},"markdown":{"instructions":["Helium is a paywall platform for mobile apps. Paywalls, workflows, triggers, targeting and experiments are configured in the dashboard (https://app.tryhelium.com); the SDK's job is to initialize, present a paywall for a trigger, and report purchases.","Pick the SDK page for the user's platform: /sdk/quickstart-ios (Swift), /sdk/quickstart-android (Kotlin), /sdk/quickstart-react-native, /sdk/quickstart-flutter. Method names differ per platform; copy them from the page for that platform, never from another platform's page.","Pages under /sdk/quickstart-ios-v3 and /sdk/quickstart-android-v0 are legacy SDK versions. Use them only when the user is on that version; for upgrades use the /migrations pages.","For live dashboard data (paywalls, workflows, metrics) connect the Helium MCP server at https://app.tryhelium.com/api/mcp (see /ai-tools/mcp). For SQL over events, revenue, subscriptions and users use the Data Access API (/data-access/overview) and the helium-data-access skill (/data-access/agent-skill). This documentation site also exposes a docs-search MCP server at https://docs.tryhelium.com/mcp.","Web checkout (App2Web) with Stripe or Paddle is a separate flow from in-app purchases; start at /web-checkout/overview.","Every page is available as Markdown by appending .md to its URL. The full index is at https://docs.tryhelium.com/llms.txt."]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"helium","hasAudioNarration":false,"actualSubdomain":"helium","customDomains":["docs.tryhelium.com"],"gitSource":{"type":"github","owner":"cloudcaptainai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af921c54f86660c4a264926","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"SDK","count":26},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Test \u0026 launch","count":7},{"language":"default","tag":"Data \u0026 AI","count":5},{"language":"default","tag":"Web checkout","count":5},{"language":"default","tag":"App2Web","count":5},{"language":"default","tag":"Data Access API","count":4},{"language":"default","tag":"Revenue \u0026 analytics","count":4},{"language":"default","tag":"Dashboard","count":4},{"language":"default","tag":"Quickstarts","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".logo img{height:32px;width:auto}table{table-layout:fixed;width:100%}table th:nth-child(1),table td:nth-child(1){width:20%}table th:nth-child(2),table td:nth-child(2){width:35%}table th:nth-child(3),table td:nth-child(3){width:45%}"}],"page":{"pagePath":"guides/paywall-traits","slug":"/guides/paywall-traits","pageMetadata":{"title":"Paywall Traits","description":"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.","icon":"square-sliders","href":"/guides/paywall-traits"},"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: \"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Badge,CodeBlock,CodeGroup,Frame,Heading,OptimizedImage,Warning}=_components;if(!Badge)_missingMdxReference(`Badge`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Badge,{color:`blue`,children:`iOS 4.4.2+`}),`\n`,_jsx(Badge,{color:`green`,children:`Android 4.4.2+`}),`\n`,_jsx(Badge,{color:`orange`,children:`React Native 3.4.3+`}),`\n`,_jsx(Badge,{color:`purple`,children:`Flutter 3.3.3+`}),`\n`,_jsx(_components.p,{children:`Paywall traits are values passed into a paywall upon presentation, allowing your paywall to display or behave differently depending on those values.`}),`\n`,_jsx(_components.p,{children:`This must be configured in two places:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Your paywall via the paywall editor`}),`\n`,_jsx(_components.li,{children:`Your app by passing in values to the Helium mobile SDK`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`paywall-editor`,children:`Paywall Editor`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=66de8518779a10c2d1eb248391567873`,alt:`Paywall Traits`,\"data-og-width\":`2308`,width:`2308`,\"data-og-height\":`1310`,height:`1310`,\"data-path\":`images/paywall_traits.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=5977acdeb0a7b0855e64db6b3057105c 280w, https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=0d53faaf5d03763237db6385ec046da7 560w, https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=be2d1a6bb7cae05410885039d79144b0 840w, https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=da9d6ce88ef4a14ff8301c56d2380e35 1100w, https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=4a0afc045015c975fc5526a4609ce909 1650w, https://mintcdn.com/helium/RB3DV7v6472dGP3j/images/paywall_traits.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=RB3DV7v6472dGP3j\u0026q=85\u0026s=a93b31fa4bb01c63ed64c40fb5ec2ce2 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Open the paywall editor from the `,_jsx(_components.a,{href:`https://app.tryhelium.com/paywalls`,children:`Helium dashboard`}),`. Type something like`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`use a paywall trait with key \"name\" to display a customized greeting`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`You MUST provide a `,_jsx(_components.strong,{children:`default value`}),` or behavior for each trait, in case the app does not pass in a value.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`pass-in-from-the-sdk`,children:`Pass in from the SDK`}),`\n`,_jsx(_components.p,{children:`By default, user traits will automatically be included as custom paywall traits in all of your paywalls. (Just make sure your SDK version is higher than what’s listed at the top of this page.)`}),`\n`,_jsxs(_components.p,{children:[`To pass in additional paywall traits during paywall presentation, use the `,_jsx(_components.code,{children:`customPaywallTraits`}),` parameter.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`iOS`,numberOfLines:`6`,language:`swift`,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:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Helium.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shared`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`presentPaywall`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` trigger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-trigger\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`PaywallPresentationConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` customPaywallTraits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`HeliumUserTraits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nameValue])`})]}),`\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\":`#D4D4D4`},children:`) { paywallNotShownReason `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Android`,numberOfLines:`10`,language:`kotlin`,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:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.tryhelium.paywall.core.HeliumUserTraits.Companion.create`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Helium.presentPaywall(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-trigger\"`}),_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:` config = PaywallPresentationConfig(`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` customPaywallTraits = mapOf(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` to nameValue,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ).create()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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`]})})}),_jsx(CodeBlock,{filename:`React Native`,numberOfLines:`4`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`presentUpsell({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` triggerName: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-trigger\"`}),_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:` customPaywallTraits: { name: nameValue },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Flutter`,numberOfLines:`5`,language:`dart`,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:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` HeliumFlutter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`presentUpsell`}),_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\":`#D4D4D4`},children:` context`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` context,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` trigger`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-trigger\"`}),_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\":`#D4D4D4`},children:` customPaywallTraits`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nameValue },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`targeting-and-metrics-considerations`,children:`Targeting and Metrics Considerations`}),`\n`,_jsx(_components.p,{children:`If you want to evaluate the effects of different traits in your paywall, utilize user traits in your SDK integration.`}),`\n`,_jsxs(_components.p,{children:[`Helium does not currently support the use of`,_jsx(_components.code,{children:`customPaywallTraits`}),` (passed during paywall presentation) as metrics filters.`]}),`\n`,_jsx(_components.p,{children:`User traits can also be used for targeting.`}),`\n`,_jsx(Heading,{level:`3`,id:`what-if-i-set-both`,children:_jsx(_components.strong,{children:`What if I set both?`})}),`\n`,_jsxs(_components.p,{children:[`If the same key is present in both user traits and `,_jsx(_components.code,{children:`customPaywallTraits`}),`, the paywall will see the value from `,_jsx(_components.code,{children:`customPaywallTraits`}),`.`]}),`\n`,_jsx(_components.p,{children:`Metrics still only sees the value from user traits.`}),`\n`,_jsx(Heading,{level:`2`,id:`coming-soon`,children:`Coming Soon`}),`\n`,_jsx(_components.p,{children:`We are working on adding default traits you can use without passing in from SDK.`})]})}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":"Paywall Traits","description":"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.","icon":"square-sliders","href":"/guides/paywall-traits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Paywall Editor","slug":"paywall-editor","depth":2,"children":[]},{"title":"Pass in from the SDK","slug":"pass-in-from-the-sdk","depth":2,"children":[]},{"title":"Targeting and Metrics Considerations","slug":"targeting-and-metrics-considerations","depth":2,"children":[{"title":"What if I set both?","slug":"what-if-i-set-both","depth":3,"children":[]}]},{"title":"Coming Soon","slug":"coming-soon","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"helium","siteName":"Helium Docs","title":"Paywall Traits - Helium Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T03:06:50.444Z","originalFileLocation":"guides/paywall-traits.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=\"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Helium Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_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/helium/SGH3zOmhZUCJi0mO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Paywall Traits - Helium Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Helium Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tryhelium.com/guides/paywall-traits\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://helium.mintlify.site/_mintlify/api/og/v2?division=Dashboard\u0026amp;title=Paywall+Traits\u0026amp;description=Pass+values+from+your+app+into+a+paywall+at+presentation+time+so+one+paywall+can+change+copy%2C+pricing+or+behavior+per+user.+Covers+the+editor+setup+and+the+SDK+\u0026amp;theme=5cc68765234c9dc11e5033a1\u0026amp;signature=bf987390cc519fa0a230ffba8c31ac0651015e6466c891f7becab0af1e3ca02c\">\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=\"Paywall Traits - Helium Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://helium.mintlify.site/_mintlify/api/og/v2?division=Dashboard\u0026amp;title=Paywall+Traits\u0026amp;description=Pass+values+from+your+app+into+a+paywall+at+presentation+time+so+one+paywall+can+change+copy%2C+pricing+or+behavior+per+user.+Covers+the+editor+setup+and+the+SDK+\u0026amp;theme=5cc68765234c9dc11e5033a1\u0026amp;signature=bf987390cc519fa0a230ffba8c31ac0651015e6466c891f7becab0af1e3ca02c\">\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/helium/SGH3zOmhZUCJi0mO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Helium Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tryhelium.com/guides/paywall-traits\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/paywall-traits.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tryhelium.com/#organization\",\"name\":\"Helium Docs\",\"url\":\"https://docs.tryhelium.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/helium/U18KGdYMLV66ysHe/logo/LargeLogo-cropped.svg?fit=max\u0026auto=format\u0026n=U18KGdYMLV66ysHe\u0026q=85\u0026s=28f7b3f657020cdb7d186e538b5f094f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tryhelium.com#website\",\"name\":\"Helium Docs\",\"url\":\"https://docs.tryhelium.com\",\"publisher\":{\"@id\":\"https://docs.tryhelium.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tryhelium.com/guides/paywall-traits#webpage\",\"url\":\"https://docs.tryhelium.com/guides/paywall-traits\",\"name\":\"Paywall Traits\",\"description\":\"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\",\"dateModified\":\"2026-11-15T03:06:50.444Z\",\"isPartOf\":{\"@id\":\"https://docs.tryhelium.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tryhelium.com/guides/paywall-traits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tryhelium.com/guides/paywall-traits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dashboard\",\"item\":\"https://docs.tryhelium.com/guides/makingpaywalls\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Paywall Traits\",\"item\":\"https://docs.tryhelium.com/guides/paywall-traits\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.tryhelium.com/guides/paywall-traits#article\",\"headline\":\"Paywall Traits\",\"name\":\"Paywall Traits\",\"description\":\"Pass values from your app into a paywall at presentation time so one paywall can change copy, pricing or behavior per user. Covers the editor setup and the SDK call for each platform.\",\"url\":\"https://docs.tryhelium.com/guides/paywall-traits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tryhelium.com/guides/paywall-traits#webpage\"},\"dateModified\":\"2026-11-15T03:06:50.444Z\",\"publisher\":{\"@id\":\"https://docs.tryhelium.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tryhelium.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Helium Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Helium Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/paywall-traits.md","siteName":"Helium Docs","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","groups":[{"group":"Get started","icon":"flag","pages":[{"title":"Introduction","icon":"hand-wave","href":"/getting-started/introduction"},{"title":"Quickstart","icon":"rocket","href":"/getting-started/quickstart"},{"title":"Helium for AI agents","sidebarTitle":"For AI agents","icon":"robot","href":"/ai-tools/agents"}]},{"group":"How Helium works","icon":"lightbulb","pages":[{"title":"How Helium Works","icon":"circle-question","href":"/guides/how-does-helium-work"},{"title":"How Helium Guarantees Performance","sidebarTitle":"Performance","href":"/guides/how-helium-guarantees-performance"},{"title":"How it works","sidebarTitle":"Planning experiments","icon":"lightbulb","href":"/background/how-it-works"}]},{"group":"Dashboard","icon":"table-columns","pages":[{"title":"Using the Helium Paywall Editor","sidebarTitle":"Paywall editor","description":"How to create and edit paywalls in the Helium dashboard: templates, screenshot import, the AI prompt bar, the element editor, products and publishing.","href":"/guides/makingpaywalls"},{"title":"Paywall Traits","icon":"square-sliders","href":"/guides/paywall-traits"},{"title":"Promotional Offers","description":"Show App Store promotional offers to existing or lapsed subscribers by combining entitlement checks, paywall traits and a custom purchase delegate.","href":"/guides/promotional-offers"},{"title":"Dashboard FAQ","icon":"circle-question","href":"/guides/dashboard-faq"}]},{"group":"Test \u0026 launch","icon":"rocket","pages":[{"title":"Paywall Previews On Device","href":"/guides/paywall-previews"},{"title":"Testing Your Paywalls","href":"/guides/test-paywalls"},{"title":"StoreKit Testing (iOS)","icon":"microscope","href":"/guides/storekit-testing"},{"title":"Helium QA Guide","href":"/guides/helium-qa-guide"},{"title":"Rolling Out Helium","href":"/guides/rolling-out-helium"}]},{"group":"Revenue \u0026 analytics","icon":"chart-line","pages":[{"title":"Set Up Revenue Tracking","icon":"credit-card","href":"/guides/revenue-reporting"},{"title":"Connect Analytics and MMPs","href":"/guides/analytics-forwarding"},{"title":"Integrate with Your 3rd Party Analytics System","icon":"chart-mixed","href":"/guides/third-party-analytics"},{"title":"How to view experimental traits in Amplitude","icon":"chart-line","href":"/guides/analytics-providers"}]},{"group":"Compliance","icon":"shield-halved","pages":[{"title":"Google Play Data Safety (Android)","sidebarTitle":"Google Play data safety","icon":"shield-halved","href":"/guides/google-play-data-safety"}]}]},{"tab":"SDK","icon":"code","pages":[{"title":"SDK","href":"/sdk/overview"}]},{"tab":"Web checkout","icon":"globe","pages":[{"title":"Web checkout","href":"/web-checkout/overview"}]},{"tab":"Data \u0026 AI","icon":"database","pages":[{"title":"Data \u0026 AI","href":"/data-access/overview"}]}]},"basePath":"","title":"Paywall Traits - Helium Docs","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DevImLcx.js","DynamicMarkdown-BGHukeRM.js","zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js"]}