Activate 6sense firmographic data

Target high-intent accounts with a tailored message using 6sense data.

In this tutorial, you will create an experience that displays personalized website content based on a visitor's firmographic data from 6sense.

By the end, your website will dynamically adapt to an account's industry, company name, or employee count in real time.

Croct's mascot neutral
6sense load time

Since 6sense usually takes a few moments to load, the firmographic data might not be available on the first page view.

Prerequisites

Before you start, make sure you have:

  • A Croct account with a workspace and application set up.
  • The Croct SDK installed in your project.
  • The 6sense Website Tag enabled on your website.

Send data from 6sense to Croct

To personalize the experience, you first need to capture the firmographic data identified by 6sense and store it in Croct's user profile.

In this tutorial, we will use Google Tag Manager (GTM) to listen for the 6sense identification event and push the resulting data directly into the user's profile.

Configure a trigger

This trigger ensures company identification data is collected and sent to Croct.

  1. In Google Tag Manager, select Triggers > New.

  2. Name the trigger as 6sense Company Details Loaded.

  3. Set trigger type to Custom Event.

  4. In Event Name, enter 6si_company_details_loaded.

  5. Click Save.

The completed trigger should look like the following:

GTM trigger

Configure a custom HTML

  1. In Google Tag Manager, select Tags > New.

  2. Name the tag as Send 6sense data to Croct.

  3. Set tag type to Custom HTML.

  4. Copy and paste the following code into the HTML field:

    Custom HTML tag
    123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
    <script>  (function() {    // Check status from session storage    var status = sessionStorage.getItem('croctUpdated');
        if (status === 'true') {      return;    }
        // Retrieve 6sense data from local storage    var details = localStorage.getItem('_6senseCompanyDetails');
        if (details === null) {      console.log('6sense data not found.');      return;    }
        var data = JSON.parse(details);
        // Create patch    var patch = croct.user.edit();
        if (data.company !== null) {      patch        .set('company', data.company.name)        .set('companyUrl', data.company.domain)        .set('custom.industry', data.company.industry)        .set('custom.employees', data.company.employee_range)        .set('custom.revenue', data.company.revenue_range)        .set('custom.firmographic.match', data.company.company_match)        .set('custom.firmographic.source', '6sense');    }
        if (data.segments !== null) {      patch.combine('custom.firmographic.segmentsIds', data.segments.ids);    }
        if (data.confidence !== null) {      patch.set('custom.firmographic.confidence', data.confidence);    }
        // Push data to Croct    patch.save();
        // Track event    croct.track('eventOccurred', {      name: '6senseDataRetrieved',      details: {        confidence: data.confidence,        source: '6sense',      }    })
        // Update status to prevent updates on every pageview    sessionStorage.setItem('croctUpdated', 'true');  })();</script>

    You can customize the patch payload to track additional data:

    Add new attributes
    1234567891011
    if (data.company !== null) {  patch    .set('company', data.company.name)    .set('companyUrl', data.company.domain)    .set('custom.industry', data.company.industry)    .set('custom.employeeRange', data.company.employee_range)    .set('custom.revenueRange', data.company.revenue_range)    .set('custom.firmographic.match', data.company.company_match)    .set('custom.companyCountry', data.company.country_iso_code)    .set('custom.firmographic.source', '6sense');}

    Check the 6sense API documentation for the full list of available data points, and the user reference for attributes.

  5. Select the trigger 6sense Company Details Loaded you created.

  6. Click Save.

Your tag should look like this:

GTM tag

Check user profiles

Once your GTM tag is published and active, you can verify that the integration is working.

  1. Open the user profiles page in the admin app.

  2. Filter users using the Custom attributes or Work info tags and open one profile.

  3. Open the Attributes tab and confirm that the firmographic data has been successfully ingested.

GTM tag

Create experiences

Now that Croct is receiving data from 6sense, you can create audiences and personalize experiences.