Skip to content

Instantly share code, notes, and snippets.

@bmccormack
Created September 28, 2017 13:18
Show Gist options
  • Save bmccormack/f2dc0ca652917163591d1ac0403a18ba to your computer and use it in GitHub Desktop.
Save bmccormack/f2dc0ca652917163591d1ac0403a18ba to your computer and use it in GitHub Desktop.
Set FullStory custom vars and log them to FS.log() at the same time
// Use this to set FullStory custom var data and log data at
// the same time. This will cause your custom vars to be visible
// in the FullStory javascript console, but they will not be
// visible in the browser console to the end user.
// See http://help.fullstory.com/develop-js/setuservars
// for how to format data.
function setUserVarsAndLog(data){
FS.setUserVars(data);
FS.log(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment