VWO Setup Guide
By The VWO Team
With Clearbit-VWO integration, you can utilize the company's attribute to deliver personalized content to any user coming from a certain company’s IP address.
Procedure
- Login to your VWO account.
- Go to Test > A/B
- To create a Campaign, click Create. To learn how to create an A/B test campaign, refer to How to Create an A/B Test.
- In the New Campaign page, click on the More Options.
- From the options present under More Options, select the option Enable campaign for a specific visitor group.
- Select the option CUSTOM, and from the Targeting options dropdown, select OTHERS > JavaScript Variable.
In the Variable Name field, enter the following code:
(function () {
if (!window.ClearBitAdded) {
window.ClearBitAdded = true;
var script = document.createElement('script');
script.src = "https://reveal.clearbit.com/v1/com panies/reveal?authorization=REPLACE_WITH_YOUR_CLEARBIT_PUBLISHABLE_KEY&variable=vwo_organization";
script.onerror = function () {
console.log('VWO: Error Ocuured while fetching the clearbit data');
};
document.getElementsByTagName('head')[0].appendChild(script);
return true;
}
})();
Note: In the above code, paste the Clearbit Publishable API key (starting in 'pk_') at the place where it says paste_your_clearbit_key_here.
- To segment further, click Add Condition.
This adds one more segment condition with the option to choose AND/OR amongst the conditions. For example, to target all the companies that are based out of India, segmentation must be configured as follows: - All the company attributes can be targeted in the format:
vwo_organization.<clearbit_variable_name> = value
Configuring the Company Attributes
All the company attributes can be targeted in the format:
vwo_organization.<clearbit_variable_name> = value
For example, to target any company in the Information Technology space, the variable will be defined as:
vwo_organization.company.category.sector = Information Technology
Please refer to the table below for the entire list of variables available for targeting.
Company Attributes Available for Targeting
Attribute |
Description |
name |
stringName of company |
domain |
stringDomain of company’s website |
tags |
|
metrics.alexaGlobalRank |
integerAlexa’s global site rank |
metrics.employees |
integerAmount of employees |
metrics.employeesRange |
|
metrics.annualRevenue |
integerAnnual Revenue (public companies only) |
metrics.estimatedAnnualRevenue |
|
logo |
stringSRC of company logo |
tech |
arrayArray of technology tags |
You can refer to the complete list of attributes here.