-
Notifications
You must be signed in to change notification settings - Fork 10
"Personalize" Button for Adobe Audience Manager #64
Comments
@trieloff A few suggested changes:
I would (re)use
I would propose to fire the event on the window.dispatchEvent(new CustomEvent('helix-audiencechanged`, { detail: audienceId })); Then blocks can register listeners like this: window.addEventListener('helix-audiencechanged', (evt) => console.log(evt.detail); And a few questions:
|
The same person that defines audiences in AudienceManager. They get it from the AudienceManager UI.
Oddly enough, this is the same question, asked twice. The
(2) overrides (1), so that a user with the sidekick can select audiences at any time. |
Sorry 😄 I figured we'd need some sot of "connecive tissue" between Audience Manager running on a page and blocks using personalization, to make sure that |
I agree with the first sentence of the issue description: we need a button in the sidekick. For the rest, I do not know. Talking about implementation details of the simulation without having defined the things which need to be simulated feels strange to me ;) I am going to create an issue for the personalised content. |
In the context of https://github.com/adobe/express-website-issues/issues/158 we should add a "Personalize" button to the Sidekick, which will work like this:
Preview/Live/Production
Clicking the button will open a dropdown that allows the user to select or reset an audience. The list of audiences is pulled from
/_audiences.json
at the site root, which is populated by a table consisting of the columns:Upon selecting an audience, the button will:
window.hlx.audience
variable to the selected IDwindow.dispatchEvent(new CustomEvent('helix-audiencechanged', { detail: audienceId }));
eventAn (upcoming) personalization component will be able to listen to these events or read the values and display the matching content.
Edit
The same dropdown will be shown, but without an option to clear or set the audience, instead clicking an audience name will copy the audience ID so that it can be used in the first column of the personalization block's table
Edit 2
Incorporated @rofe's suggestions from below: #64 (comment)
The text was updated successfully, but these errors were encountered: