Clearbit is a platform that lets you interact with contacts and customers and analyze their behaviors.
By using Clearbit Reveal and Survicate on your website, the integration lets you send Reveal data to Survicate as user attributes.
With the Clearbit and Survicate integration, you can:
see Clearbit data next to a customer's survey response to quickly reach out to unhappy contacts;
filter survey responses by Clearbit data;
use information you have about customers in Clearbit to target Website surveys to certain groups.
In this article, you'll learn how to connect the Clearbit and Survicate integration.
π Please remember to have the Survicate tracking code installed on the webpage where the surveys should appear.
Implement the integration
Paste this JavaScript code before the Clearbit Reveal tag on your website:
<script>
function flattenJSON(obj, res, extraKey) {
for(key in obj){
if(typeof obj[key] !== 'object'){
res["reveal." + extraKey + key] = obj[key];
}else{
flattenJSON(obj[key], res, extraKey+key +'.');
};
};
return res;
};
function revealCallback(response) {
window.reveal = response;
if (dataLayer) {
dataLayer.push({ reveal: response });
dataLayer.push({ event: "Clearbit Loaded" });
}
if (_sva) {
var traits = flattenJSON(response, {}, '');
delete traits["reveal.ip"];
_sva.setVisitorTraits(traits);
}
return true;
}
</script>
π From now on, all attributes will be sent to Survicate automatically, along with each respondent's survey submission.
See results in Survicate
When visitors submit your survey on the website, and they were recognized by Clearbit, you'll be able to see the data from Clearbit Reveal in the Analyze > Individual responses tab of a survey, under User attributes. Clearbit data is prefixed with reveal
.
You can see the list of all Clearbit attributes here: https://clearbit.com/attributes.
Best practices
Set up your website survey's Audience and Triggers
From your Survicate Panel, you can choose who and how often will see your survey, as well as decide on what URLs and when it should appear.Β Here you can see our articles with step-by-step instructions on how to take advantage of all of Survicate's targeting options for website surveys.
Run multilingual surveys
Try our automatic translations feature to show your respondent's surveys adjusted to their browser language and increase the response rate.
π If you have any questions about setting up the Clearbit - Survicate integration - feel free to reach out to our team via chat or email: support@survicate.com