Skip to content

FUN-2085: Pass attribution metadata through purchase results#827

Open
jholwill wants to merge 3 commits intomainfrom
codex/fun-2085-attribution-metadata-pass-through
Open

FUN-2085: Pass attribution metadata through purchase results#827
jholwill wants to merge 3 commits intomainfrom
codex/fun-2085-attribution-metadata-pass-through

Conversation

@jholwill
Copy link
Copy Markdown
Contributor

@jholwill jholwill commented Apr 2, 2026

Summary

We need to enrich the Purchase event for funnels users who have set up the Meta integration. This PR allows the forwarding of any applicable attribution_metadata associated with a purchase back to any consumers as part of the response.

By proxying this optional metadata from the BE , we can now send Meta Pixel events using the same event_id which allows for deduplication.

Marked the new field as @internal as this is currently only available to use for the rc-workflows client.

Testing

Unit testing

Copy link
Copy Markdown
Contributor Author

jholwill commented Apr 2, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jholwill jholwill changed the title Pass attribution metadata through purchase results FUN-2085: Pass attribution metadata through purchase results Apr 2, 2026
@jholwill jholwill force-pushed the codex/fun-2085-attribution-metadata-pass-through branch from eabb325 to e4ac5ca Compare April 2, 2026 16:02
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!PresentPaywallParams#customVariables:member",
"docComment": "/**\n * Custom variables to pass to the paywall at runtime, overriding defaults set in the RevenueCat dashboard.\n *\n * Variables must be defined in the dashboard first. Reference them in paywall text using the `custom.` prefix (e.g. `{{ custom.player_name }}`).\n *\n * @example\n * ```ts\n * presentPaywall({\n * customVariables: {\n * player_name: CustomVariableValue.string('Ada'),\n * level: CustomVariableValue.string('42'),\n * },\n * });\n * ```\n *\n */\n",
"docComment": "/**\n * Custom variables to pass to the paywall at runtime, overriding defaults set in the RevenueCat dashboard.\n *\n * Variables must be defined in the dashboard first. Reference them in paywall text using the `custom.` prefix (e.g. `{{ custom.player_name }}`).\n *\n * @example\n * ```ts\n * presentPaywall({\n * customVariables: {\n * player_name: CustomVariableValue.string('Ada'),\n * level: CustomVariableValue.number(42),\n * is_premium: CustomVariableValue.boolean(true),\n * },\n * });\n * ```\n *\n */\n",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what updated this?

@jholwill jholwill marked this pull request as ready for review April 2, 2026 20:07
The customVariables example update was picked up during rebase
but is unrelated to this PR's attribution metadata changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant