Created
September 28, 2017 13:18
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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