-
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.
NEW DOCS
Force some user properties to be dynamically controlled by tag favorites, based on user behavior. You'll need to specifically call out which user properties can be updated this way and from which favorites.
groucho.config.favorites = [{
userProperty: 'user.genre',
favoritesKey: 'music_genre',
overwrite: true
}, {
userProperty: 'user.role',
favoritesKey: 'audience_type',
overwrite: false
}];
- userProperty - localStorage value to adjust automatically.
- favoritesKey - Tag vocabulary to discover favorites.
- overwrite - Should favorites overwrite existing values (used if value can be set by user).
<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'
}];