Created
December 3, 2011 00:26
-
-
Save lbernstein/1425496 to your computer and use it in GitHub Desktop.
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
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