Skip to content

Instantly share code, notes, and snippets.

@brianr
Created May 7, 2014 20:53
Show Gist options
  • Save brianr/712a19805387fc005d40 to your computer and use it in GitHub Desktop.
Save brianr/712a19805387fc005d40 to your computer and use it in GitHub Desktop.
rollbar.js configuration with cookie
<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