Demandbase Plugin How-To

Updated:

Usage

The Demandbase WordPress plugin provides the ability to personalize and target site content based on a visitor's company profile.

WordPress Shortcodes are used to display Demandbase company profile attributes within site copy or to conditionally show content blocks.

To learn more about Shortcodes, visit: http://codex.wordpress.org/Shortcode


There are two methods for displaying targeted/personalized content using this plugin:

  1. Dynamically display company profile attribute values using a single Shortcode
  2. Wrap content in Shortcode conditions to only display content when the visitor's company profile satisfies a rule.

 

1. Display Company Profile Attributes

Attribute Shortcode format and usage:

[db_attribute attr="industry"]Example output: Software & Technology[db_attribute attr="company_name"]Example output: Demandbase

For a full list of attributes, see the Attributes page (under the Demandbase menu on the left).

For an enumeration of values for attributes such as revenue range, employee range, industry and audience, visit the Demandbase API documentation (login required).

2. Conditional Blocks

Conditional Shortcode format and usage:

[db_conditional industry="Software & Technology, manufacturing"]
    This content only shows up for the Software & Technology or Manufacturing industries.
[/db_conditional]
Example output: This content only shows up for the Software & Technology or Manufacturing industries.[db_conditional not="not" industry="Software & Technology, manufacturing"]
    This content only shows up when a visitor is not in the Software & Technology or Manufacturing industries.
[/db_conditional]
Example output: This content only shows up when a visitor is not in the Software & Technology or Manufacturing industries.

Please note that you may define as many criteria as necessary for each attribute by separating with commas.

For a complete list of the available Company Profile attributes, see: Demandbase API documentation (login required).

3. Default Conditional Blocks

Conditional Shortcode format and usage for default values:

Due to the way WordPress parses Shortcodes, in order to define a default bahavior, you must use the not="not" code and specify all of the values you target in every other Shortcode block. See the example below for clarification.

[db_conditional industry="manufacturing" marketing_alias="demandbase"]
    This content will show up for the manufacturing industry or for Demandbase.
[/db_conditional]

[db_conditional industry="Software & Technology"]
    This content will show up for the Software & Technology industry.
[/db_conditional]

[db_conditional not="not" industry="Software & Technology, manufacturing" marketing_alias="demandbase"]
    This content only shows up when a visitor is not in the Software & Technology or Manufacturing industries and is not with Demandbase.
[/db_conditional]

4. Nesting Attribute Short Codes in Conditional Blocks

Nesting rules:

Due to the way WordPress parses Shortcodes, you can only nest an attribute Shortcode inside of a conditional Shortcode. You cannot nest a conditional inside a conditional.

[db_conditional industry="Software & Technology"]
    Welcome to our site, [db_attribute attr="marketing_alias"]. Check out our products for [db_attribute attr="audience"] companies.
[/db_conditional]
Example output: Welcome to our site, Demandbase. Check out our products for SMB companies.

Was this article helpful?
0 out of 0 found this helpful