Skip to main content

Demandbase

Demandbase lets you inject Account Intelligence into every step of the buyer journey - through advertising, account-based experience, and sales intelligence.

This integration adds quirks to Uniform that map to data from Demandbase. These quirks can be used to configure personalization instructions.

Add quirk definitions

  1. In Uniform, open your project.

  2. Navigate to the Integrations tab.

  3. Click Demandbase.

  4. Click Add to project.

  5. Navigate to Personalization > Quirks.

    About this step

    You will see a list of quirks that were added by the Demandbase integration.

Set quirks

You need to retrieve data from Demandbase and set that data into quirks. Uniform provides components you can use to do this without having to write code for Demandbase.

Before you start

You need a Demandbase API token in order to retrieve data from Demandbase.

  1. Add the following package to your application:

    @uniformdev/context-cdp-demandbase
  2. Add following code:

    import { 
    DemandbaseClient,
    buildDemandbaseQuirks,
    } from "@uniformdev/context-cdp-demandbase";

    const client = new DemandbaseClient({
    apiToken: "!!! YOUR DEMANDBASE API TOKEN !!!",
    });
    const profile = await client.getCompanyProfile({ ip: "!!! VISITOR IP ADDRESS !!!" });
    const quirks = buildDemandbaseQuirks(profile, {
    quirks: {
    country: true,
    audience: true,
    }
    });
    About this step

    This code retrieves data from Demandbase using the specified IP address.

    tip

    For more information on the quirks that are available, see the package reference for the Demandbase integration.

  3. To add this data to the Uniform context so it can be used during classification and personalization, use the following code:

    const manifest = {};
    const context = new Context({ manifest });
    context.update({ quirks });
    About this step

    This code can be used anywhere you have access to the Uniform context (e.g. edge-side personalization).