-
Notifications
You must be signed in to change notification settings - Fork 7
Full Docs
Josh Lind edited this page May 8, 2017
·
33 revisions
- Moving markdown file to wiki page(s).
- Adding details for personalization PR.
You can allow some user properties to be dynamically controlled and updated through favorites.
groucho.config.favorites = [{
userProperty: 'genre',
favoritesKey: 'music_genre',
overwrite: true
}, {
userProperty: 'role',
favoritesKey: 'audience_type',
overwrite: false
}];
...
<section data-groucho-pane="user.genre" class="hidden">
<span data-groucho="pop">Gaga</span>
<span data-groucho="rock">Zeppelin</span>
</section>
...
groucho.config.overrides = [{
parameter: 'music',
userProperty: 'user.genre'
}, {
parameter: 'campaign',
userProperty: 'campaign'
}];