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.

  1. In Uniform, open your project.

  2. Navigate to the Integrations tab.

    browse-integrations
  3. Click Demandbase.

    add-to-project
  4. Click Add to project.

    integration-added
  5. Navigate to Personalization > Quirks.

    available-quirks

    About this step

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

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.

tip

Where does this code belong? This code can run on the client, the server, or on the edge, depending on your application.

Since the lookup is based on the visitor's IP address, you do not need to run this code on each request. In fact, you should not run this code on each request because it will needlessly increase page-load time.

Consider using a cookie to keep track of the fact that the lookup has been performed. For example, you can store the visitor's IP address in a cookie. Then you can add logic so the lookup only happens when the cookie does not exist or when the IP address changes.

  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).