Skip to content

Instantly share code, notes, and snippets.

@lbernstein
Created December 3, 2011 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbernstein/1425496 to your computer and use it in GitHub Desktop.
Save lbernstein/1425496 to your computer and use it in GitHub Desktop.
var myCallback = function(data) {
// Determine if the visitor is identified as an ISP
if (data.isp) {
// Determine if detailed company information is available
if (data.information_level == ‘detailed’) {
// All firmographic fields are available for use
// Take some action based on these details
company = data.company_name
industry = data.industry
//etc.
} else {
// Take some action based on general fields such as location or audience
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment