--- title: "Deploying Company Identification API with Google Tag Manager Event Trigger (WebTag 1.0)" slug: "deploying-company-identification-api-with-google-tag-manager-event-trigger-webtag-10" description: "Enhance your 6sense Website Tag 1.0 with Company Identification in Google Tag Manager for better analytics and targeted marketing insights." updated: 2025-07-10T18:36:06Z published: 2025-07-10T18:36:06Z canonical: "support.6sense.com/deploying-company-identification-api-with-google-tag-manager-event-trigger-webtag-10" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.6sense.com/llms.txt > Use this file to discover all available pages before exploring further. # Deploying Company Identification API with Google Tag Manager Event Trigger (WebTag 1.0) The purpose of this guide is to help you enhance your existing 6sense Website Tag 1.0 with the 6sense Company Identification API within Google Tag Manager. If you are looking for WebTag 2.0 set up for GTM, use this [article](/v1/docs/webtag-20-guide-install-the-company-identification-api-on-google-tag-manager-and-ga4). If you have not added the 6sense website tag to GTM yet you will need to treat this as a new tag set up. - For instructions on setting up Google Tag Manager, see [Setup and install Tag Manager](https://support.google.com/tagmanager/answer/6103696?hl=en) - For instructions on adding the 6sense Website Tag to your GTM see [6sense & Google Tag Manager](/v1/docs/6sense-and-google-tag-manager). This guide includes additional steps to set up a Google Tag Manager Custom Trigger and Custom Event so that the Company Identification API data will push to Google Analytics when loaded. Once the API is live, 6sense customers can use the data in various systems such as Google Analytics to create Account based dashboards and use custom dimensions to define or refine audiences for activation within Google Campaigns. To set up custom dimensions in Google Analytics see [6sense & Google Analytics](/v1/docs/6sense-google-analytics). To deploy 6sense within Google Ad words see [How to Use 6sense with Google Ads](https://hub.6sense.com/blogs/how-to-use-6sense-with-google-ads). ***Note****: you will need your Company Identification API key to complete the set up below. API key can be found in the Settings > API Key.* ## Instructions ### Step 1 Open Google Tag Manager and navigate to your web property. ### Step 2 Select the existing 6sense tag from the list of tags on your website. If you have not added the 6sense website tag to GTM you will need to treat this as a new tag set up. For instructions on adding the 6sense Website Tag to your GTM see [6sense & Google Tag Manager](/v1/docs/6sense-and-google-tag-manager). ### Step 3 Update the existing code with the snippet below. There are 3 sections of the snippet that need to be customized for each customer. Please note the sections in RED that need to be updated in order for the tag to work. 3a) YOUR_6SENSE_WEB_TAG_KEY – can be found in the existing 6sense tag or in the settings section in 6sense under “Website Tag” 3b) YOUR_6SENSE_COMPANY_DETAILS_API_KEY – can be found in the settings section in 6sense under “API Key” 3c) If you have more than one product, they will each be displayed in the current code snippet (see example below [here](/docs/deploying-company-identification-api-with-google-tag-manager-event-trigger-webtag-10#h_01EYYB82FXTBZWTJMWJS41MT4S)). If you wish to choose specific products to pass, you will need to modify the code. ### Custom Script Snippet ```javascript ``` Your tag will look similar to this: ![mceclip2.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000780461-mceclip2.png) ### Step 4 Save the tag. ### Step 5 Navigate to “Triggers” in Google Tag Manager and create a new Trigger. - The type will be `Custom Event`. - The event name will be `6si_company_identification_loaded`. - The title of this event should be `6sense Company Identification Loaded`. - Click **Save**. Your trigger should look similar to this: ![mceclip0.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000745342-mceclip0.png) ### Step 6 Navigate back to Tags and locate your Google Analytics / Universal Analytics tag that sends the Pageview event. - Click on the tag to open up the settings. - Verify that the Track Type says `Page View` - Verify that Custom Dimensions are listed. If not, set up custom dimensions in Google Analytics and Variables in Google Tag manager by following instructions in [6sense & Google Analytics](/v1/docs/6sense-google-analytics). - On the top right, click the icon with 3 vertical dots. - Click Copy. ### Step 7 To the left of the icon, change the name to `Send 6sense CD to GA` - Click the edit icon on Tag Configuration - Tag Type should be `Google Analytics: Universal Analytics` - Change the Track Type to `Event` - Set the category as `6si_company_details` - Set the action as `6si_data_loaded` - Set Non-Interaction Hit to `True` - The rest of the fields remain blank or will contain default values. - For Google Analytics Settings, choose the Settings Variable for your main Universal Analytics tag - Check ‘Enable overriding settings for this tag ![mceclip0.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4406847559699-mceclip0.png) - Expand ‘More Settings’ - Under ‘More Settings’ > Custom Dimensions, configure desired 6sense Company Identification attributes. Make sure you are referencing the Index set up in Google Analytics. If this is not yet set up, see: [Step 4 in the Google Analytics Guide](/v1/docs/6sense-google-analytics#step-4-attach-data-layer-variable-to-ga-tag-within-gtm) - Note: Click the ‘LEGO’ icon to easily select the GTM Variable you set up. ![mceclip1.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4406855393171-mceclip1.png) - Scroll down and click the edit icon on Triggers - Remove existing firing triggers - Add a new firing trigger, selecting the `6sense Company Identification Loaded` trigger that was created above. - Click save Your tag should look similar to this: ![mceclip0.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/360102138133-mceclip0.png) Note: Custom Dimensions will differ depending on your configuration. If you have not set up the custom dimensions yet for Google Analytics, please see [6sense & Google Analytics](/v1/docs/6sense-google-analytics) and during Step 6 configure the Custom Dimensions for this new tag instead. ### Step 8 Don’t forget to publish in GTM! ## Validation – Google Tag Manager ### Step 1 Navigate to the Versions tab in Google Tag Manager ![mceclip3.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000748562-mceclip3.png) ### Step 2 Click on the 3 vertical dots to the right of the latest version and click on Preview ![mceclip4.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/360101852633-mceclip4.png) ### Step 3 Enter your website URL and click Start - A new tab will open to your website ### Step 4 - Navigate back to Google Tag Manager and click Continue if there is a pop-up on the screen - Click on the item on the left with the name `6si_company_details_loaded`. This is the trigger we set up. ![mceclip5.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000783221-mceclip5.png) - Ensure that the `Send 6sense CD to GA` tag has fired. ### Step 5 - Navigate to the Variables tab - Confirm that the 6sense variables you set up in [6sense & Google Analytics](/v1/docs/6sense-google-analytics) are populated with information. ![mceclip6.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000749242-mceclip6.png) ### Step 6 - Since the event tag is firing and the Data Layer Variables are populated with information, Google Analytics is now receiving the data and will associate these custom dimensions with the page view since the variables have Session scope. - Allow 24 to 48 hours for data to collect in Google Analytics and any report with Custom Dimensions are present will now show the Company Identification API data! ## Validation – Google Analytics ### Step 1 - On any report, create a new segment called “Has 6sense Company Identification Populated”. ### Step 2 - Change the date range near the top right to include Today if you made the tag updates today ![mceclip2.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/360101867553-mceclip2.png) ### Step 3 - Go to Advanced ? Conditions and choose any 6sense Custom Dimension - Select the second dropdown to change the criteria to `matches regex`. - Input `.` (a period symbol). This is the Regular Expression for “any character or symbol” and is the equivalent to “is not blank”. ![mceclip4.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000797621-mceclip4.png) ### Step 4 - Review the Summary pane to the right. This will show you the proportion of users for the time period selected that fall into this segment. - If you still do not see any counts to the right, either the Google Analytics Custom dimensions were not configured correctly (revisit [6sense & Google Analytics](/v1/docs/6sense-google-analytics)) or simply more data needs to be collected on the website. Please wait 24 hours or so for more data to collect. ### Step 5 - Save the segment to see the results. Compare this segment to your “All Users” segment to see the proportion of traffic that is identified vs. not identified by the 6sense Company Identification API. ![mceclip3.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/1500000762762-mceclip3.png) ## Appendix ### Company Identification API Response Sample ```json {  "confidence": "Very High",  "company": {    "naics_description": "Software Publishers",    "zip": "94107",    "employee_count": "200",    "country": "United States",    "address": "450 Mission",    "city": "San Francisco",    "employee_range": "100 - 249",    "industry": "Software and Technology",    "sic": "7372",    "revenue_range": "",    "country_iso_code": "US",    "phone": "(415) 212-9225",    "domain": "6sense.com",    "name": "6sense",    "state": "California",    "region": "Northern America",    "naics": "5112",    "annual_revenue": "",    "sic_description": "Prepackaged Software"  },  "scores": [    {      "product": "cloud_services",      "intent_score": 79,      "buying_stage": "Decision",      "profile_score": 49,      "profile_fit": "Weak"    },    {      "product": "onprem_support",      "intent_score": 5,      "buying_stage": "Target",      "profile_score": 21,      "profile_fit": "Weak"    }  ],  "segments": {    "ids": [      123123,      456456,      119900,      226688    ],    "names": [      "Web Visitors Last 30 days",      "Accounts with 10+ Impressions",      "Accounts renewal 45 Days",      "Competitive Takeout Campaign Oct19"    ],    "list": [      {        "name": "Web Visitors Last 30 days",        "id": 123123      },      {        "name": "Accounts with 10+ Impressions",        "id": 456456      },      {        "name": "Accounts renewal 45 Days",        "id": 119900      },      {        "name": "Competitive Takeout Campaign Oct19",        "id": 226688      }    ]  } } ``` Application Programming Interface; a set of rules that allows different software applications to communicate with each other. A piece of code placed on a website to track user interactions and gather data for analytics and marketing purposes. A defined set of accounts or contacts used for targeted marketing and sales efforts.