WebTag 2.0 Guide: Install the Company Identification API on Adobe Launch (Data Collection)

Prev Next

This guide is designed to help guide you through setting up and integrating the 6sense Company Identification API with Adobe Launch (Data Collection). Before getting started, it is assumed you are using Adobe Launch (Data Collection) and have a tag container already set up and installed on your website.

Business decisions

Before beginning the implementation steps, all stakeholders need to agree on how 6sense data should be represented in Adobe through eVars. Use the response section of the API guide to understand all data that is returned from Company Identification API, and create a plan on how 6sense data should be assigned to eVars.

This implementation uses JavaScript to assign 6sense data to eVars. This means there can be a one-to-one mapping of 6sense data to eVars, or multiple 6sense datapoints can be assigned to one eVar.

Implementation steps

  1. Ensure your 6sense WebTag is Configured in Adobe Launch (Data Collection).

    Follow guidance in WebTag v2.0 Guide: Install the Company Identification API on Adobe Launch (Data Collection) to configure and install your web tag in Adobe Launch (Data Collection).

  2. Enable the options for Company Identification API and Limit Company Identification API calls in the WebTag v2.0 Configuration. Once done, click the Save & Next button.

  3. Back in Adobe Launch (Data Collection), configure the Adobe Analytics Tracker with Custom Code.

    1. In Adobe Launch (Data Collection), navigate to the Extensions section on the left.

    2. Click Configure on the Adobe Analytics Extension card.

    3. Expand the “Configure Tracker Using Custom Code” section and click Open Editor.

  4. Edit the attached JavaScript code to align with the business decisions made when talking to stakeholders.

    window._6si = window._6si || [];
    window._6si.push([
        "enableCompanyDetails", 
        true,
        function(strData) {
            if (strData !== "") {
                var companyName,
                    scores,
                    segmentNames,
                    data = JSON.parse(strData);
                switch (data.company.company_match) {
                    case "Match":
                        companyName = data.company.name;
                        break;
                    case "Non-actionable Match":
                        companyName = "(Non-company Visit)";
                        break;
                    default:
                        companyName = "(Unidentified Visit)";
                }
                s.eVar100 = data.company.industry_v2[0].industry,
                s.eVar101 = data.company.industry_v2[0].subindustry,
                s.eVar102 = companyName,
                s.eVar103 = data.company.company_match,
                s.eVar104 = data.company.additional_comment,
                s.eVar105 = data.company.companyId,
                s.eVar106 = data.confidence,
                s.eVar107 = data.company.geoIP_country,
                s.eVar108 = data.company.geoIP_state,
                s.eVar109 = data.company.geoIP_city,
                s.eVar110 = data.company.domain,
                s.eVar111 = data.company.country,
                s.eVar112 = data.company.address,
                s.eVar113 = data.company.state,
                s.eVar114 = data.company.state_code,
                s.eVar115 = data.company.city,
                s.eVar116 = data.company.zip,
                s.eVar117 = data.company.region,
                s.eVar118 = data.company.country_iso_code,
                s.eVar119 = data.company.employee_count,
                s.eVar120 = data.company.employee_range,
                s.eVar121 = data.company.annual_revenue,
                s.eVar122 = data.company.revenue_range,
                s.eVar123 = data.company.industry,
                s.eVar124 = data.company.phone,
                s.eVar125 = data.company.sic,
                s.eVar126 = data.company.sic_description,
                s.eVar127 = data.company.naics,
                s.eVar128 = data.company.naics_description,
                s.eVar129 = data.company.is_blacklisted,
                s.eVar130 = data.company.is_6qa;
                if (0 != data.scores.length && data.scores[0]) {
                    scores = data.scores[0],
                    s.eVar131 = scores.buying_stage,
                    s.eVar132 = scores.intent_score,
                    s.eVar133 = scores.profile_fit,
                    s.eVar134 = scores.profile_score,
                    s.eVar135 = scores.product,
                    s.eVar136 = scores.product_display_name,
                    s.eVar137 = scores.is_6qa;
                }    
                if (0 != data.segments.names && data.segments) {
                    segmentNames = data.segments.names,
                    s.eVar138 = segmentNames.names.join(","),
                    s.eVar139 = segmentNames.ids.join(",");
                }
            }
        },
        3,
    ]);
  5. Paste the code into the Editor and click Save.

  6. Proceed with your organization’s testing or deployment steps for Adobe Launch (Data Collection).