Sync Snitcher’s company identification data to Segment.com, making it available across all your connected destinations.
Using getSpotterIdentification() (Recommended)
The cleanest approach is to call getSpotterIdentification() after the tracker initializes:
// Wait for Snitcher to initialize
Snitcher.on('initialized', async function() {
const identification = await Snitcher.getSpotterIdentification();
if (identification && identification.success) {
const data = identification.data;
// Send to Segment as a track event
analytics.track("Company Identified", {
company_name: data.name,
company_domain: data.website,
company_industry: data.industry,
company_size: data.size
});
// Or set as user traits
analytics.identify({
company: {
id: data.uuid,
name: data.name,
industry: data.industry,
employee_count: data.size
}
});
}
});
Using Callback (Legacy)
If you prefer the callback approach, define SpotterSettings before the Snitcher script loads:
<script>
window.SpotterSettings = {
callback: function(identification) {
// Ignore ISP identifications
if (identification && identification.type !== "isp") {
var company = identification.company;
// Sync to Segment
analytics.track("Company Identified", {
company_name: company.name,
company_domain: company.domain,
company_industry: company.industry,
company_size: company.employee_range
});
}
}
};
</script>
<!-- Snitcher tracking script loads after -->
No API token is required. Spotter uses your tracker’s profile ID for authentication automatically.
What Data to Send
We recommend tracking these company attributes:
| Segment Property | Snitcher Field | Description |
|---|
company_name | data.name / company.name | Company name |
company_domain | data.website / company.domain | Primary domain |
company_industry | data.industry / company.industry | Industry category |
company_size | data.size / company.employee_range | Employee range |
Use Cases
Once company data flows to Segment, you can:
- Enrich CRM records in Salesforce, HubSpot, etc.
- Personalize experiences in tools like Intercom or Drift
- Build audiences for advertising platforms
- Power analytics in Amplitude, Mixpanel, or BigQuery