Adobe Target

1. Add the Clearbit Reveal API to your site

Add the Clearbit Reveal snippet, making sure to change out the public key placeholder "pk_test" with your key:

<script src='https://reveal.clearbit.com/v1/companies/reveal?authorization=pk_test&variable=reveal'></script>

2. Select the attributes that you'd like to pass through, and edit the following snippet as desired. The keys below are how the attributes will be reference-able in Target.

<script>

#add attributes as desired, see reveal api call for full set of options

targetPageParams = function() {
return {
"companyName": reveal.company.name,
"companyDomain": reveal.company.domain,
"companyIndustry": reveal.company.category.industry,
"companyEstimatedAnnualRevenue": reveal.company.metrics.estimatedAnnualRevenue,
"companyEmployeesRange": reveal.company.metrics.employeesRange
};
};


(function(){
try {
var POLL_INTERVAL = 100,
MAX_POLL = 10,
pollCount = 0;

function poll() {
pollCount++;
if (adobe && adobe.target && adobe.target.getOffer && reveal && pollCount >= MAX_POLL) {

adobe.target.getOffer({
"mbox": "target-global-mbox",
"success": function(offers) {
adobe.target.applyOffer({
"mbox": "target-global-mbox",
"offer": offers
});
},
"error": function(status, error) {
if (console && console.log) {
console.log(status);
console.log(error);
}
},
"timeout": 3000
});

clearTimeout(poll);
} else if (pollCount < MAX_POLL) {
setTimeout(poll, POLL_INTERVAL);
}
}
poll();

} catch (e) {
console.log(e);
}})()

</script>

3. Testing:

You can use Adobe Experience Cloud Debugger to help confirm if attributes are being picked up by the Adobe library. Selecting the Target tab, you should see attributes appear in something similar to the below:

Screenshot_2020-02-20_21.57.46.png