What is a Custom Dimension?
Custom Dimensions are sent to analytics as parameters attached to hits, like page views, or events. Each custom dimension needs to be set before a tracking call can be made in order for that value to be sent to analytics. Each one is assigned a unique index number that differentiates one dimension (or metric) from the other. Each Clearbit attribute will need to be assigned a dimension and index number to be tracked from your website to GA.
How do I set up Custom Dimensions in Google Analytics?
To create a set of custom dimensions within Google Analytics, you'll need to create a one-to-one mapping of Clearbit attributes to Google Analytics dimensions.
Navigate to Custom Definitions then Custom Dimensions within the Google Analytics Admin panel to begin adding. Create a custom dimension for each of the properties you want to include, with a 'Scope' of 'User'. Mark Active.
We recommend these for best practice:
- Company Name
- Company Domain
- Industry Tags
- Industry Group
- Sub Industry
- Company Type
- Employee Range
- Global Alexa Rank
- HQ City
- HQ State
- HQ Country
- Tech Stack
(We do recommend adding as many of relevant Clearbit dimensions from the beginning as you can so there aren't any gaps in your analytics.)
You can choose to create as many or as few dimensions as you think is helpful, however you can only have up to 20 in GA total. Which means if you already have existing dimensions you will need to rename them.
Make sure you keep a note of the dimension numbers to check the js script that you will add to your website. Based on the dimensions you pick, your code could different. You just have to make sure the numbers align EXACTLY.
Compare the Dimension naming conventions and numbers in the above image to the script below. They match 1-for- 1.
Add your Clearbit GA plugin code to your site by inserting the script above underneath the Google Analytics standard `ga('create')` and `ga('send', 'pageview')` sections.
Depending on the way you manage your Google Analytics account, you’ll find full integration instructions below for each: