Created
May 7, 2014 20:53
-
-
Save brianr/712a19805387fc005d40 to your computer and use it in GitHub Desktop.
rollbar.js configuration with cookie
This file contains 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
<script> | |
_rollbarConfig = { | |
accessToken: "token here", | |
payload: { | |
environment: "production", // or 'development', etc. | |
person: { | |
id: "123", // required if present, string up to 40 chars | |
username: "brian", // optional, string up to 255 chars | |
email: "brian@rollbar.com" // optional, string up to 255 chars | |
}, | |
client: { | |
javascript: { | |
cookie: document.cookie | |
} | |
} | |
} | |
}; | |
// rest of snippet goes here | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment