Personalization initialization
You must include the personalization initializer on all pages by adding it to the header.js
file.
The initialization code resides in the /scripts/initializers/personalization.js
file within the boilerplate.
Functionality
The initialization sets up the following listeners:
Initialization example
Add the following line to the blocks/header/header.js
file in the boilerplate (or any other file included for all pages):
import '../../scripts/initializers/personalization.js';