In the Fullstory Javascript snippet, you'll notice that we use the global identifier FS
. If by chance another script on the page uses this identifier, they can conflict. When this happens, the data capture script will emit the following warning to the javascript console:
FullStory namespace conflict. Please set window["_fs_namespace"].
Fortunately, there's a simple solution. Within the data capture script snippet, you'll see the following line:
window['_fs_namespace'] = 'FS';
Change 'FS' to an unused value, such as 'Fullstory', in your code and it will resolve the naming conflict.
Note that you will need to update any places in your javascript where you call Fullstory APIs to use this new prefix; e.g., FS('setIdentity', { uid, properties })
would need to be changed to Fullstory('setIdentity', { uid, properties })
.
Note: We officially released V2 of our Identify Users Browser API (e.g.
setIdentity
)
on
November 1st, 2023. If you're still using V1 of our Browser API (e.g.
FS.identify
),
please refer
to
our V1 API documentation found
here.
If you were using Fullstory prior to August 3rd, 2023 and aren't sure which version of our Browser API is compatible with the data capture snippet deployed on your website, please refer to these instructions to confirm.