Personified
Personified displays personalized content to users by making client-side requests to a JSON endpoint. It uses available user data from their device, such as local storage or cookies, to customize these requests. The retrieved content is then rendered using Handlebars templates, updating the page to show the personalized information.
Personified provides a block which operates clientside and is capable of displaying personalised content to the user. The block is configured to make requests on a JSON endpoint using parameters which are available in various clientside objects (localstorage, datalayer, cookie, parameters, window variables). The response is transformed using Handlebars templates. The DOM is then updated to show the results to the user. The user is therefore able to see content which has been personalised using state found in their device.
This module works best when:
- There are variables available in the client which can be used to customise the request URL. These variables can be created by other client side scripts such as trackers or other widgets which can write data out which can then be consumed.
- A JSON endpoint exists which can return content lists filtered by parameters, ie. Views with JSON output.
Personified is therefore not a plug and play block. There is some groundwork which needs to be laid in order for it to work. Once it has been setup it provides an easy to use way to pull back content from Drupal in a progressivly decoupled manner.
Troubleshooting
- Personified data blocks is displaying wrong data.Clear the Drupal cache, Varnish cache and PHP OPcache.
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.