Pushing Data to Specific or Multiple Google Analytics Properties

Overview

With Google Analytics (GA), you have the option of pushing Clearbit data into a single GA Property or multiple to enhance your team's Analytics reporting experience.

By default, the Clearbit Google Analytics integration passes data to the first GA property it finds on the page. If your site only uses a single property with GA (most sites), you should be ready to go, however if you're looking for a more complex configuration to send data to additional or specific properties, you're in the right place.

 

To Configure Clearbit to Pass Data into All Properties on a Page

Set a tracker name for each of your properties and update your Clearbit snippet to include the following section in bold per the following example:

ga_trackers=[];
ga.getAll().forEach(function(x,i){
ga_trackers.push(x.get('name'))});
ga_trackers.forEach(
function(gaName){
ga(gaName + '.require', 'Clearbit', { 
"mapping":{"companyName":"dimension2",
"companyDomain":"dimension8",
"companyTags":"dimension18",
"companyType":"dimension11",
"companyEmployeesRange":"dimension17",
"companyAlexaRank":"dimension19",
"companyTech":"dimension20"
}});
});

This snippet will find all tracker names on the page and push data into the property. You will want to confirm that the custom dimensions inside of your Google Analytics account are aligned for this to work as intended.

 

To Configure Clearbit to Pass Data to Specific GA Property

Set a tracker name then update your snippet in bold with your specific tracker names and your custom mapping:

ga_trackers=['yourTracker1','yourTracker2','yourTracker3'];
ga_trackers.forEach(function(gaName){
ga(gaName + '.require', 'Clearbit', {
"mapping":{"companyName":"dimension2",
"companyDomain":"dimension8",
"companyTags":"dimension18",
"companyType":"dimension11",
"companyEmployeesRange":"dimension17",
"companyAlexaRank":"dimension19",
"companyTech":"dimension20"
}}); 
});

Confirm the mapping for your custom dimensions per above within your Google Analytics instance.