User login
If you are using the Personalization module you have to let FACT-Finder know which session is connected to which user. In order to do this, you have to send a login
event whenever a user logs in into your shop.
Parameter | Description | |
---|---|---|
sid | essential | Use this to pass the user’s session identifier. This is only needed in order to connect the session to the user and must be anonymised. |
userId | essential | Use this to pass a user identifier. Like the session ID, this must be anonymised. The user identifier differs from the sid in that it remains the same for users who visit more than once. Use of this parameter is mandatory for this event. In case your shop does not require a permanent user account, you have to provide an alternative as the user ID that has a longer life span than a session (like a cookie ID) in order to allow personalization to re-use its learnings in the user’s next shopping session. It is also possible to first assign the session to the cookie using the login event and once the user ID is known re-assign the session to the user. Then the session learnings will first be merged with the cookie learnings and later everything will be merged with the user learnings. |
Example
$stringEscapeUtils.escapeHtml($body)