Clearbit

Ole Dallerup Updated by Ole Dallerup

Dreamdata comes with built-in functionality to collect intent data for all your visitors. However, if you are using Clearbit, you should improve the data quality and coverage by parsing the Clearbit data to Dreamdata. When both Dreamdata and Clearbit reveal data give a result, Clearbit data will be used.

The script below requires that you have set up Dreamdata tracking. You can add the script to your website's header or load it through Google Tag Manager.

<script type="text/javascript">
function clearbitCallback(response) {
sessionStorage.setItem("cb_reveal", JSON.stringify(response));

if (!response || !response.company || response.type !== "company" || !response.company.domain) {
return;
}

analytics.group(null, {
website: response.company.domain,
source: "clearbit",
name: response.company.name || undefined,
country: response.company.geo.country || undefined,
industry: response.company.category.industryGroup || undefined,
number_of_employees: response.company.metrics.employeesRange || undefined,
annual_revenue: response.company.metrics.estimatedAnnualRevenue || undefined,
});
}

window.analytics.ready(function () {
const clearbitKey = "{pk_replace_me}";
const response = sessionStorage.getItem("cb_reveal");

if (response || analytics.group().traits().website) {
return;
}

const script = document.createElement("script");
script.src = `https://reveal.clearbit.com/v1/companies/reveal?authorization=${clearbitKey}&callback=clearbitCallback`;
document.body.appendChild(script);
});
</script>

Note: Remember to replace {pk_replace_me} with your publishable Clearbit key that you find by logging into your Clearbit dashboard.

How did we do?

Albacross

Custom data

Contact