You can record company attributes as Data Layer Variables in Tag Manager, allowing you to easily re-use them in other tags, triggers, or variables.
Here’s how:
- Sign in to Google Tag Manager.
- Click the Variables tab, find the User-Defined Variables box, and click New.

- Fill out the data layer variable form:
Replace Untitled Variable with the suggested Variable Title in the table below.
Click Variable Configuration, then select Data Layer Variable.
Fill out Data Layer Variable Name with the value provided in the table below.
Set Data Layer Version to Version 2.
Click Save.
Repeat the steps above for all Snitcher identification data variables you’d like to have available as data layer variables. Here’s an overview of the most commonly used:
Variable Title | Data Layer Variable Name |
---|
SnitcherCompanyName | snitcher.name |
SnitcherCompanyDomain | snitcher.domain |
SnitcherCompanyIndustry | snitcher.industry |
SnitcherCompanySize | snitcher.size |
- Update your Spotter callback function
<script>
function myCallback(identification) {
// We want to ignore 'isp' type identifications
if (identification && identification.type !== "isp") {
// The company was successfully identified!
var company = identification.company;
// Sync data into Data Layer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
snitcher: {
name: company.name,
domain: company.domain,
industry: company.industry,
size: company.employee_range
}
});
}
}
// Spotter API settings
window.SpotterSettings = {
token: "YOUR-API-TOKEN",
callback: myCallback,
};
</script>
Responses are generated using AI and may contain mistakes.