You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Demandbase属性在DTM中映射至Adobe Analytics变量的技术咨询

Mapping Demandbase Attributes to Adobe Analytics Variables in DTM

Hey there! I’ve helped several teams tackle this exact mapping task, so let me break down the step-by-step process for you—since you’ve already got the integration done, the hard part’s over!

First, Confirm Demandbase Data is Accessible

Before jumping into DTM, double-check that Demandbase is pushing its attributes to your page’s frontend. Open your browser’s developer console and run:

console.log(window.demandbase);

You should see an object with all the attributes from your table. Note the exact path to each attribute (e.g., window.demandbase.data.company_industry for a "Company Industry" attribute)—this is what you’ll use in DTM.

Step-by-Step Mapping in DTM

  1. Open your DTM Web Property and navigate to the Rules section.
  2. Create a new Rule (or edit an existing rule that fires for your Analytics tracking, like a Page Load rule).
    • Set the trigger to match when you want the attributes sent (e.g., "Page Load" for all pages, or a specific page path).
  3. Add an Adobe Analytics Action:
    • In the Rule’s Actions tab, click Add Action → select Adobe Analytics - Set Variables.
  4. Map your attributes:
    • For each Adobe Analytics variable (eVar, prop, event) you want to populate, find its field in the Set Variables interface.
    • Paste the Demandbase attribute path you noted earlier into the field. For example, if you’re mapping to eVar1, enter window.demandbase.data.company_industry directly into the eVar1 input box.
    • Pro tip: If you need to handle edge cases (like empty values), use a Custom Code Action instead. For example:
      // Get Demandbase attribute with fallback
      var dbIndustry = window.demandbase?.data?.company_industry || "Unknown";
      // Assign to Analytics variable
      s.eVar1 = dbIndustry;
      
  5. Test and Publish:
    • Save your rule and push it to your staging environment.
    • Use the Adobe Analytics Debugger extension or check the network tab to verify that the variables are being sent correctly in the image request to Adobe.

Bonus: Use Data Elements for Flexibility

If you want to reuse these Demandbase attributes across multiple rules, create Data Elements first:

  • Go to Data Elements → Create New.
  • Set the type to Custom Script, then return the Demandbase attribute path (e.g., return window.demandbase.data.company_industry;).
  • Now, in your Analytics Set Variables action, you can select this Data Element instead of typing the path directly—makes updates easier later!

Quick Notes to Avoid Headaches

  • Make sure the Demandbase script loads before your DTM Analytics rules fire. If you’re loading Demandbase asynchronously, add a condition to your rule to wait until window.demandbase exists.
  • Cross-reference your table’s friendly attribute names with the actual frontend variable paths—sometimes Demandbase uses slightly different keys in the object than the display names in documentation.

内容的提问来源于stack exchange,提问作者Michael Johns

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 04:18:36