Clearbit integration
Custom connection between Clearbit & AB Tasty
You can achieve advanced audience targeting and personalization by using Clearbit Reveal and pushing enriched firmographic data into your website’s JavaScript data layer, or by leveraging Segment.
With this approach, you can:
Personalize content and experiments based on firmographic traits, such as industry or company size.
Build advanced segments, for example, targeting B2B SaaS companies with more than 500 employees.
Exclude competitors or specific verticals from certain experiences.
Integration Methods
Use Clearbit Reveal to identify a visitor’s company based on IP address. Push the returned data into the browser’s window.dataLayer
. Configure AB Tasty to read from these variables for custom targeting.
Install Clearbit Reveal on Your Website Add the following snippet as early as possible in your HTML <head>:
<script src="https://reveal.clearbit.com/v1/clearbit.min.js"></script>
<script>
clearbit.reveal({ key: 'YOUR_PUBLIC_CLEARBIT_KEY' }).then(function(result) {
if (result && result.company) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'clearbit_reveal',
company: {
name: result.company.name,
industry: result.company.industry,
subIndustry: result.company.category?.subIndustry,
employees: result.company.metrics?.employees,
domain: result.company.domain,
tags: result.company.tags
}
});
}
});
</script>
Use only the public key with Clearbit Reveal.
Configure AB Tasty to Read the Data
Go to your campaign Targeting Settings.
Add a custom targeting condition based on the data layer variable, for example:
Variable: company.industry
Condition: equals
Value: Software
Example manual Push:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'clearbit_reveal',
company: {
name: 'Acme Corp',
industry: 'Software',
subIndustry: 'SaaS',
employees: 500
}
});
Use cases
Personalized homepage: Customize copy based on
company.industry == 'Healthcare'
.ABM targeting: Only show the pricing page or demo banner to
employees > 500
.Competitor blocking: Suppress features or discounts for companies with tag
['competitor']
Best practices
Load timing: Fire Clearbit Reveal before AB Tasty.
AB Tasty tag: Place it early in the DOM to minimize flicker.
Testing: Use browser tools to validate
window.dataLayer
contents.Privacy: Avoid pushing PII to the browser. Stay compliant with GDPR/CCPA
Last updated
Was this helpful?