What if the identifier 'FS' is used by another script on my site?

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 recording 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 recording 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.identify() would need to be changed to FullStory.identify() .

Can’t find what you’re looking for?

The FullStory team awaits your every question.

Contact Us