How to check if a conflict exists?
LiveSession uses __ls
as a global identifier for accessing JS API. If another script in your code uses this identifier, it can conflict. In that case, the LiveSession script can’t work. When this happens, you will see the following warning on the browser console:
LiveSession namespace conflict. Please set window["__ls_namespace"].
How to fix it?
To fix this issue, replace the namespace definition in your tracking code:
window["__ls_namespace"] = “LS” // or “LiveSession”
Note that you will need to update any places in your script where you call LiveSession API.