Skip to main content
All CollectionsTracking code
What if the '__ls' API identifier is already used on my site?
What if the '__ls' API identifier is already used on my site?
Simon avatar
Written by Simon
Updated over 10 months ago

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.

Did this answer your question?