You can pass Snitcher company identification data into Mida using the mida.identify() client-side API. This lets you target and personalize content based on the visitor's company — industry, size, domain, and more.
Implement Snitcher Spotter API
Follow Snitcher's Spotter API setup guide to generate your API token and install the Spotter script: Snitcher Spotter API documentation
The Mida script must also be installed on the same page.
Real-time personalization with Snitcher
Mida supports real-time personalization when Snitcher identifies a company during the current visit.
When Snitcher's callback fires, call mida.identify() with the company attributes, then chain .reload(). The .reload() call tells Mida to re-evaluate your personalization rules and apply matching variants on the same page without waiting for a return visit.
<script>
function myCallback(identification) {
// Ignore identifications of type 'isp'
if (identification && identification.type !== "isp") {
// The company was successfully identified!
const company = identification.company;
// Sync data into Mida and apply personalization immediately
mida.identify({
snitcher_company_name: company.name,
snitcher_company_domain: company.domain,
snitcher_company_industry: company.industry,
snitcher_company_employee_range: company.employee_range
}).reload();
}
}
// Snitcher API settings
window.SpotterSettings = {
token: "YOUR-API-TOKEN",
callback: myCallback,
};
</script>
How it works
Snitcher identifies the visitor — The Spotter callback runs asynchronously after the page loads.
mida.identify()stores company attributes — Data is saved to the visitor profile and sent to Mida..reload()applies personalization — Mida re-runs targeting and shows the matching personalization variant on the current page.
On future visits, the stored attributes are already available, so matching personalization can apply as soon as Mida loads — even before Snitcher's callback runs again.
Targeting with Snitcher data
Use the snitcher_* properties in your Mida personalization audience rules. For example:
Show a different hero headline when
snitcher_company_industryequalsSoftwareDisplay enterprise pricing when
snitcher_company_employee_rangeis51-200or higherSwap logos or social proof when
snitcher_company_domainmatches a target account list
You can also use these values as dynamic keywords in your variant content (e.g. {{snitcher_company_name}}).
Tips
Always chain
.reload()if you want personalization to apply on the same visit. Callingmida.identify()alone saves the data but does not re-apply variants until the next page load.Snitcher runs asynchronously — visitors may briefly see the default page before identification completes. This is expected;
.reload()applies the personalized experience once Snitcher responds.Filter ISP traffic — The example above skips
type: "isp"identifications so residential visitors are not treated as companies.
About Mida user identification
Identifying users lets you personalize content with dynamic keywords and audience targeting based on the attributes you provide.
To add custom user data, use the mida.identify() method. You can pass properties like id, name, email, or any custom attributes relevant to your use case.
For more details, see How to identify user with API?
