...
To ensure the correct timing when making alterations , handle the S4SCloudLoading event in your own script:
Code Block |
---|
window.addEventListener('S4SCloudLoading', (evt) => { // Facet evaluation code goes here. }); |
Set a Facet for the Goal threshold
Facets may be applied when the Visitor reaches a threshold value for a particular Goal.
...
S4S Cloud will automatically set the Facet when the specified Goal reaches the given value.
Set a Facet using
...
Custom Logic
Facets may also be applied using your own logic. This uses a callback function that provides the current Visitor object.
...
Facets are recorded against the Visitor, they are never removed once applied. They are also sent to the S4S Cloud service for Identified Visitors and synchronized across different browsers.
Facet
...
Cookie
If the personalizationCookie setting is enabled, S4S Cloud will automatically populate a cookie named S4SCloud with the values of all Facets separated by pipe (|) characters. e.g.:
...