Skip to content

fix: prevent cached commerce attributes in Rokt placements#100

Merged
rmi22186 merged 5 commits into
developmentfrom
feat/implement-default-deny-list
May 27, 2026
Merged

fix: prevent cached commerce attributes in Rokt placements#100
rmi22186 merged 5 commits into
developmentfrom
feat/implement-default-deny-list

Conversation

@rmi22186
Copy link
Copy Markdown
Collaborator

@rmi22186 rmi22186 commented May 26, 2026

Summary

  • Add a built-in Rokt selectPlacements attribute persistence denylist for commerce/order attributes.
  • Prevent denylisted attributes from being cached in the kit’s userAttributes.
  • Prevent stale denylisted user attributes from being merged into later launcher.selectPlacements calls.
  • Preserve explicitly passed selectPlacements({ attributes }) values for the current call, while avoiding persistence for future calls.

Testing Plan

  • Tests added
  • tested on a local app, first calling selectPlacements with code in production to load all user attributes with commerce attributes that were passed to selectplacements, then

@rmi22186 rmi22186 requested a review from alexs-mparticle May 26, 2026 20:32
Comment thread src/Rokt-Kit.ts Outdated
Comment thread src/Rokt-Kit.ts Outdated
Comment thread src/Rokt-Kit.ts
@rmi22186 rmi22186 force-pushed the feat/implement-default-deny-list branch from 00ec121 to 05edbb0 Compare May 27, 2026 02:13
@rmi22186 rmi22186 requested a review from alexs-mparticle May 27, 2026 14:35
@rmi22186 rmi22186 changed the base branch from main to development May 27, 2026 14:56
@rmi22186 rmi22186 force-pushed the feat/implement-default-deny-list branch from 462c3d6 to 3658f4d Compare May 27, 2026 14:59
@rmi22186 rmi22186 merged commit 7c59fc5 into development May 27, 2026
5 checks passed
github-actions Bot pushed a commit that referenced this pull request May 27, 2026
# [1.27.0](v1.26.3...v1.27.0) (2026-05-27)

### Bug Fixes

* prevent cached commerce attributes in Rokt placements ([#100](#100)) ([7c59fc5](7c59fc5))

### Features

* enrich commerce event action from Rokt.CommerceEventType ([#97](#97)) ([1535005](1535005))
@mparticle-automation
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants