Attach string key-value pairs to payment requests with the data object on WidgetConfig. Values are forwarded to the Paysight API with each payment attempt (card, wallet, upsell). Some keys receive dedicated attribution handling. Other keys are sent as payment props; forwarding does not guarantee persistence or availability in transaction APIs.
Campaign name, alias, or your campaign identifier. Paysight can resolve or create the corresponding campaign record while the shared product/session has no campaign attribution yet (subject to tenant limits).
affiliateName
Affiliate/traffic-source name, alias, or your identifier. Paysight can resolve or create the corresponding affiliate record while the shared product/session has no affiliate attribution yet (subject to tenant limits).
clickId
Click identifier used for attribution.
utm_source, utm_medium, utm_campaign
Standard UTM attribution values.
gclid, wbraid, gbraid
Google Ads identifiers. The Widget also captures these URL parameters automatically when available.
subAffiliateId
Sub-affiliate identifier.
trackhouseClickId
Trackhouse click identifier.
url and other string keys
Custom metadata. Availability in reports depends on your Paysight configuration.
Do not use campaignId or affiliateId for your own identifiers. These deprecated fields accept only internal, Paysight-assigned IDs. Unknown values can cause the payment request to be rejected. Use campaignName and affiliateName instead.
The Widget Playground starts with campaign, utm_source, and url rows to demonstrate generic custom metadata. The campaign key is not the dedicated Paysight campaign field. Use campaignName when you want Paysight campaign attribution, and use affiliateName for affiliate or traffic-source attribution.
The same Paysight product and initial payment session are reused across the journey. Once campaign/affiliate attribution is established, changing data.campaignName or data.affiliateName on later widget instances does not reliably override it. The transaction table returns resolved campaign and affiliate values. These names are not reliable per-offer product labels.upsellId, sub-affiliate identifiers, click identifiers, UTM values, and arbitrary custom data keys are not exposed as dedicated fields by the current transaction list/detail APIs. Generic custom keys are not guaranteed to be stored per transaction. Keep your own offer-to-payment records if you need item-level identification. See Saved payment & upsell.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Paysight Documentation","colors":{"primary":"#835df7","light":"#835df7","dark":"#835df7"},"logo":{"light":"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb","dark":"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb","href":"https://docs.paysight.io/"},"favicon":"https://mintcdn.com/paysight/N-VR3otE-jwc0efn/favicon.svg?fit=max\u0026auto=format\u0026n=N-VR3otE-jwc0efn\u0026q=85\u0026s=7dbd7fb359d2a2e527055aa4c04f3604","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://help.paysight.io/en/","label":"Support"}],"primary":{"type":"button","label":"Sign in","href":"https://app.paysight.io/auth/login"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/paysight-io","instagram":"https://www.instagram.com/paysight.io"}},"icons":{"library":"lucide"},"interaction":{"drilldown":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paysight","hasAudioNarration":false,"actualSubdomain":"paysight","customDomains":["docs.paysight.io"],"gitSource":{"type":"github","owner":"paysight-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad36825c61f9b46518099d8","collectionId":"ff6a9fb7-9742-4de3-bf2c-2bb6fd6fe017","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad36825c61f9b46518099d8"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6ad36825c61f9b46518099d8","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":43},{"language":"default","tag":"SDK Reference","count":30},{"language":"default","tag":"Paysight API Reference","count":29},{"language":"default","tag":"Shopify Checkout","count":24},{"language":"default","tag":"Checkout Editor","count":23},{"language":"default","tag":"Integration Guides","count":18},{"language":"default","tag":"Knowledgebase","count":14},{"language":"default","tag":"Examples","count":10},{"language":"default","tag":"Admin API","count":9},{"language":"default","tag":"Paysight Guides","count":8}]},"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":"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":"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":"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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"widget-sdk/guides/tracking-and-attribution","slug":"/widget-sdk/guides/tracking-and-attribution","pageMetadata":{"title":"Tracking \u0026 attribution","description":"Pass affiliate and campaign data via config.data","href":"/widget-sdk/guides/tracking-and-attribution"},"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 affiliate and campaign data via config.data\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Callout,CodeBlock,Heading,Table,Warning}=_components;if(!Callout)_missingMdxReference(`Callout`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Attach string key-value pairs to payment requests with the `,_jsx(_components.code,{children:`data`}),` object on `,_jsx(_components.code,{children:`WidgetConfig`}),`. Values are forwarded to the Paysight API with each payment attempt (card, wallet, upsell). Some keys receive dedicated attribution handling. Other keys are sent as payment `,_jsx(_components.code,{children:`props`}),`; forwarding does not guarantee persistence or availability in transaction APIs.`]}),`\n`,_jsx(Heading,{level:`2`,id:`basic-usage`,children:`Basic usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,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:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PaySightSDK`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createWidget`}),_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:` config:`}),_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:` productId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` YOUR_PRODUCT_ID`}),_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:` sessionId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_SESSION_ID'`}),_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:` environment:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'sandbox'`}),_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:` amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 29.99`}),_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:` data:`}),_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:` affiliateName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'partner-123'`}),_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:` campaignName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'spring-sale'`}),_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:` clickId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'click-abc123'`}),_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:` utm_source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'email'`}),_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:` url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://yoursite.com/offer?utm_source=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`,_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`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`common-keys`,children:`Common keys`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Key`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`campaignName`})}),_jsx(_components.td,{children:`Campaign name, alias, or your campaign identifier. Paysight can resolve or create the corresponding campaign record while the shared product/session has no campaign attribution yet (subject to tenant limits).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`affiliateName`})}),_jsx(_components.td,{children:`Affiliate/traffic-source name, alias, or your identifier. Paysight can resolve or create the corresponding affiliate record while the shared product/session has no affiliate attribution yet (subject to tenant limits).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clickId`})}),_jsx(_components.td,{children:`Click identifier used for attribution.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`utm_source`}),`, `,_jsx(_components.code,{children:`utm_medium`}),`, `,_jsx(_components.code,{children:`utm_campaign`})]}),_jsx(_components.td,{children:`Standard UTM attribution values.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gclid`}),`, `,_jsx(_components.code,{children:`wbraid`}),`, `,_jsx(_components.code,{children:`gbraid`})]}),_jsx(_components.td,{children:`Google Ads identifiers. The Widget also captures these URL parameters automatically when available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subAffiliateId`})}),_jsx(_components.td,{children:`Sub-affiliate identifier.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trackhouseClickId`})}),_jsx(_components.td,{children:`Trackhouse click identifier.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`url`}),` and other string keys`]}),_jsx(_components.td,{children:`Custom metadata. Availability in reports depends on your Paysight configuration.`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not use `,_jsx(_components.code,{children:`campaignId`}),` or `,_jsx(_components.code,{children:`affiliateId`}),` for your own identifiers. These deprecated fields accept only internal, Paysight-assigned IDs. Unknown values can cause the payment request to be rejected. Use `,_jsx(_components.code,{children:`campaignName`}),` and `,_jsx(_components.code,{children:`affiliateName`}),` instead.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`playground-data-shape`,children:`Playground data shape`}),`\n`,_jsxs(_components.p,{children:[`The Widget Playground starts with `,_jsx(_components.code,{children:`campaign`}),`, `,_jsx(_components.code,{children:`utm_source`}),`, and `,_jsx(_components.code,{children:`url`}),` rows to demonstrate generic custom metadata. The `,_jsx(_components.code,{children:`campaign`}),` key is not the dedicated Paysight campaign field. Use `,_jsx(_components.code,{children:`campaignName`}),` when you want Paysight campaign attribution, and use `,_jsx(_components.code,{children:`affiliateName`}),` for affiliate or traffic-source attribution.`]}),`\n`,_jsx(Heading,{level:`2`,id:`attribution-across-upsells`,children:`Attribution across upsells`}),`\n`,_jsxs(_components.p,{children:[`The same Paysight product and initial payment session are reused across the journey. Once campaign/affiliate attribution is established, changing `,_jsx(_components.code,{children:`data.campaignName`}),` or `,_jsx(_components.code,{children:`data.affiliateName`}),` on later widget instances does not reliably override it. The transaction table returns resolved `,_jsx(_components.code,{children:`campaign`}),` and `,_jsx(_components.code,{children:`affiliate`}),` values. These names are not reliable per-offer product labels.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`upsellId`}),`, sub-affiliate identifiers, click identifiers, UTM values, and arbitrary custom `,_jsx(_components.code,{children:`data`}),` keys are not exposed as dedicated fields by the current transaction list/detail APIs. Generic custom keys are not guaranteed to be stored per transaction. Keep your own offer-to-payment records if you need item-level identification. See `,_jsx(_components.a,{href:`/widget-sdk/guides/saved-payment-and-upsell#identifying-the-purchased-offer`,children:`Saved payment \u0026 upsell`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`updating-at-runtime`,children:`Updating at runtime`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`update`}),_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:` data:`}),_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\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`existingData`}),_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:` campaignName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'retargeting'`}),_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(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`utm-capture-pattern`,children:`UTM capture pattern`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getUtmParams`}),_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:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` URLSearchParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`search`}),_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\":`#C586C0`},children:` return`}),_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:` utm_source:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'utm_source'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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\":`#9CDCFE`},children:` utm_medium:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'utm_medium'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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\":`#9CDCFE`},children:` utm_campaign:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'utm_campaign'`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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\":`#9CDCFE`},children:` url:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`href`}),_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(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` widget`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaySightSDK`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createWidget`}),_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:` config:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getUtmParams`}),_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(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Callout,{type:`info`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data`}),` values must be strings (`,_jsx(_components.code,{children:`Record\u003cstring, string>`}),`). Coerce numbers before passing.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`distinction-from-session-ids`,children:`Distinction from session IDs`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Source`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sessionId`})}),_jsx(_components.td,{children:`You`}),_jsxs(_components.td,{children:[`Per-checkout identifier in widget config; forwarded as `,_jsx(_components.code,{children:`partnerSession`}),` and limited to 50 characters`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.*`})}),_jsx(_components.td,{children:`You`}),_jsx(_components.td,{children:`Attribution / metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paysightSession`})}),_jsx(_components.td,{children:`Paysight API`}),_jsxs(_components.td,{children:[`Upsell handoff — not set via `,_jsx(_components.code,{children:`data`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/widget-sdk/reference/configuration`,children:`Configuration reference`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/widget-sdk/core-concepts`,children:`Core concepts`})}),`\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":"Tracking \u0026 attribution","description":"Pass affiliate and campaign data via config.data","href":"/widget-sdk/guides/tracking-and-attribution"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Basic usage","slug":"basic-usage","depth":2,"children":[]},{"title":"Common keys","slug":"common-keys","depth":2,"children":[]},{"title":"Playground data shape","slug":"playground-data-shape","depth":2,"children":[]},{"title":"Attribution across upsells","slug":"attribution-across-upsells","depth":2,"children":[]},{"title":"Updating at runtime","slug":"updating-at-runtime","depth":2,"children":[]},{"title":"UTM capture pattern","slug":"utm-capture-pattern","depth":2,"children":[]},{"title":"Distinction from session IDs","slug":"distinction-from-session-ids","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"paysight","siteName":"Paysight Documentation","title":"Tracking \u0026 attribution - Paysight Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-30T21:04:04.892Z","originalFileLocation":"widget-sdk/guides/tracking-and-attribution.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 affiliate and campaign data via config.data\">\u003cmeta data-mint-head name=\"application-name\" content=\"Paysight 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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tracking \u0026amp; attribution - Paysight Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pass affiliate and campaign data via config.data\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Paysight Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paysight.mintlify.app/_mintlify/api/og/v2?division=Integration+Guides\u0026amp;title=Tracking+%26+attribution\u0026amp;description=Pass+affiliate+and+campaign+data+via+config.data\u0026amp;theme=f392b05b090d467f13cdd995\u0026amp;signature=88636c1c142d744a316a0586df2b5056ec4ff2c958ee11f914587cf6acfa0de2\">\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=\"Tracking \u0026amp; attribution - Paysight Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pass affiliate and campaign data via config.data\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paysight.mintlify.app/_mintlify/api/og/v2?division=Integration+Guides\u0026amp;title=Tracking+%26+attribution\u0026amp;description=Pass+affiliate+and+campaign+data+via+config.data\u0026amp;theme=f392b05b090d467f13cdd995\u0026amp;signature=88636c1c142d744a316a0586df2b5056ec4ff2c958ee11f914587cf6acfa0de2\">\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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Paysight Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#835df7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/widget-sdk/guides/tracking-and-attribution.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paysight.io/#organization\",\"name\":\"Paysight Documentation\",\"url\":\"https://docs.paysight.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paysight.io#website\",\"name\":\"Paysight Documentation\",\"url\":\"https://docs.paysight.io\",\"publisher\":{\"@id\":\"https://docs.paysight.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution#webpage\",\"url\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution\",\"name\":\"Tracking \u0026 attribution\",\"description\":\"Pass affiliate and campaign data via config.data\",\"dateModified\":\"2026-09-30T21:04:04.892Z\",\"isPartOf\":{\"@id\":\"https://docs.paysight.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integration Guides\",\"item\":\"https://docs.paysight.io/widget-sdk/guides/installation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tracking \u0026 attribution\",\"item\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution#article\",\"headline\":\"Tracking \u0026 attribution\",\"name\":\"Tracking \u0026 attribution\",\"description\":\"Pass affiliate and campaign data via config.data\",\"url\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paysight.io/widget-sdk/guides/tracking-and-attribution#webpage\"},\"dateModified\":\"2026-09-30T21:04:04.892Z\",\"publisher\":{\"@id\":\"https://docs.paysight.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paysight.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Paysight Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Paysight Documentation","nav":{"global":null,"tabs":[{"tab":"Knowledgebase","pages":[{"title":"Knowledgebase","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"SDK Reference","groups":[{"group":"Widget SDK","pages":[{"title":"Paysight Widget SDK","href":"/widget-sdk/introduction"},{"title":"Widget SDK Quick Start","href":"/widget-sdk/quickstart"},{"title":"Core concepts","href":"/widget-sdk/core-concepts"},{"title":"Widget playground","href":"/widget-sdk/guides/playground"}]},{"group":"Integration Guides","pages":[{"title":"Installation Guide","href":"/widget-sdk/guides/installation"},{"title":"Configuration Guide","href":"/widget-sdk/guides/configuration"},{"title":"Event Handling","href":"/widget-sdk/guides/events"},{"title":"Styling Guide","href":"/widget-sdk/guides/styling"},{"title":"Localization","href":"/widget-sdk/guides/localization"},{"title":"3DS via Paysight Widget","href":"/widget-sdk/guides/3ds-via-widget"},{"title":"Saved payment \u0026 upsell","href":"/widget-sdk/guides/saved-payment-and-upsell"},{"title":"Shopify cart checkout","href":"/widget-sdk/guides/shopify-cart-checkout"},{"title":"External payment button","description":"Host your own pay CTA with hidePaymentButton and submitPayment","href":"/widget-sdk/guides/external-payment-button"},{"title":"Tracking \u0026 attribution","href":"/widget-sdk/guides/tracking-and-attribution"},{"title":"Wallet-only checkout","description":"showOnlyWalletMethods — Apple Pay and Google Pay without card form","href":"/widget-sdk/guides/wallet-only-checkout"},{"title":"Apple Pay via Paysight Widget","href":"/widget-sdk/guides/apple-pay-via-widget"},{"title":"Google Pay via widget","href":"/widget-sdk/guides/google-pay-via-widget"}]},{"group":"Widget SDK Reference","pages":[{"title":"Configuration reference","href":"/widget-sdk/reference/configuration"},{"title":"API reference","href":"/widget-sdk/reference/api"},{"title":"Events reference","href":"/widget-sdk/reference/events"},{"title":"Error codes","href":"/widget-sdk/reference/error-codes"},{"title":"Troubleshooting","href":"/widget-sdk/reference/troubleshooting"}]},{"group":"Examples","pages":[{"title":"Widget playground","href":"/widget-sdk/guides/playground"},{"title":"Widget SDK live demos","href":"/widget-sdk/examples/live-demos"},{"title":"Basic Integration Example","href":"/widget-sdk/examples/basic-integration"},{"title":"Saved payment \u0026 upsell example","href":"/widget-sdk/examples/saved-payment-upsell"},{"title":"External button checkout \u0026 upsell","href":"/widget-sdk/examples/external-button-checkout-upsell"},{"title":"Shopify two-page flow","href":"/widget-sdk/examples/shopify-two-page-flow"},{"title":"3D Secure Integration Example","href":"/widget-sdk/examples/3ds-integration"},{"title":"Custom Styling Example","href":"/widget-sdk/examples/custom-styling"},{"title":"Error Handling Example","href":"/widget-sdk/examples/error-handling"}]}]},{"tab":"Paysight API Reference","pages":[{"title":"Paysight API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Tracking \u0026 attribution - Paysight Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}