# Qualtrics Destination Config Reference

<p><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/qualtrics/" >Qualtrics</a> is a device mode destination for website and app feedback surveys. RudderStack loads Qualtrics&rsquo; intercept code in the browser and passes it the names of <code>page</code> and <code>track</code> events. In Android and iOS apps, it loads Qualtrics&rsquo; SDK and sets <code>identify</code> traits on it, so your intercepts can target users by what they do and who they are.</p>
<p>In a Qualtrics destination spec:</p>
<ul>
<li><code>type: qualtrics</code></li>
<li><code>definition_version: 1</code></li>
</ul>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="sample-configuration">Sample configuration</h2><div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">version: rudder/v1
kind: destination
metadata:
  name: qualtrics-prod
spec:
  id: qualtrics-prod
  display_name: Qualtrics Production
  type: qualtrics
  definition_version: 1
  enabled: true
  config:
    project_id: &#34;{{ .QUALTRICS_PROJECT_ID }}&#34;
    brand_id: acmecorp
    enable_generic_page_title:
      web: false

    event_filtering:
      blacklist:
        - Product Viewed

    connection_mode:
      web: device
      android: device
      ios: device
    consent_management:
      web:
        - provider: oneTrust
          consents:
            - analytics</code></pre></div>
</div>
<p>The above example connects web, Android, and iOS sources, all in <code>device</code> mode. <code>enable_generic_page_title</code> and <code>event_filtering</code> affect only the web integration — see <a href="#web-settings" >Web settings</a> and <a href="#event-filtering" >Event filtering</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="config-keys">Config keys</h2><p><code>config</code> accepts only the keys listed below. The <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#config-key-rules" >shared config key rules</a> cover unknown keys, defaults, and immutability.</p>

<html lang="en">
<blockquote class="info">
  <div class="tip-quote">
    
    <div class="tip-text">Qualtrics runs only in <code>device</code> mode. On web it acts on <code>page</code> and <code>track</code> calls, and passes their names to Qualtrics as events your intercepts can target. On Android and iOS it acts only on <code>identify</code> calls, and sets their string and number traits as Qualtrics properties for intercept targeting.</div>
  </div>
</blockquote>

</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="connection">Connection</h3><div class="rs-ckeys">
<div class="rs-ckey" id="project_id">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">project_id</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  ID of the Qualtrics Website/App Feedback project whose intercepts RudderStack loads, such as <code>ZN_blw7AbCTWxCGung</code>. It&rsquo;s listed under the project&rsquo;s <strong>Project IDs</strong> settings, next to the brand ID.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Used on web, Android, and iOS.</li>
<li>Rudder CLI checks only that it&rsquo;s present.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <p>Supply it as a <code>{{ .VAR }}</code> reference rather than a literal — see <a href="#secrets" >Secrets</a>.</p>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/qualtrics/#how-do-i-get-my-qualtrics-project-id-and-brand-id" >How do I get my Qualtrics project ID and brand ID?</a>.</p>

</div>

</div>

<div class="rs-ckey" id="brand_id">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">brand_id</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  ID of your organization&rsquo;s Qualtrics brand, listed with the project ID.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Used on web, Android, and iOS.</li>
<li>Rudder CLI checks only that it&rsquo;s present.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="web-settings">Web settings</h3><div class="rs-ckeys">
<div class="rs-ckey" id="enable_generic_page_title">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">enable_generic_page_title</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Send every <code>page</code> call to Qualtrics as <code>Viewed a Page</code>, instead of a name built from the call&rsquo;s category and name.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — boolean. The dashboard defaults it to <code>false</code>; Rudder CLI doesn&rsquo;t fill it in.</li>
<li>Applies to <code>web</code> sources in <code>device</code> mode — the Android and iOS integrations ignore <code>page</code> calls. <code>web</code> is the only key the object accepts.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <p>When <code>false</code> or unset, a <code>page</code> call is sent as <code>Viewed &lt;category&gt; &lt;name&gt; Page</code>, or <code>Viewed &lt;name&gt; Page</code> when it has no category, so give your <code>page</code> calls a name. The category comes from the call&rsquo;s category, or from <code>properties.category</code>. A call with neither a name nor a category isn&rsquo;t sent.</p>
<div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">enable_generic_page_title:
  web: true</code></pre></div>
</div>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/qualtrics/#page" >Page</a>.</p>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="event-filtering">Event filtering</h3><p><a href="https://www.rudderstack.com/docs/sources/event-streams/sdks/event-filtering/" >Client-side event filtering</a> is applied by the SDK, and every source connects to Qualtrics in <code>device</code> mode. It changes nothing for Android and iOS sources, though: their Qualtrics integrations act only on <code>identify</code> calls, which aren&rsquo;t filtered.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="event_filtering">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">event_filtering</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Restricts which <code>track</code> events the SDK passes to Qualtrics, by event name. <code>page</code> calls aren&rsquo;t filtered.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>whitelist</code> — array of event names to allow; every other <code>track</code> event is dropped.</li>
<li><code>blacklist</code> — array of event names to drop; every other <code>track</code> event is allowed.</li>
<li>The two are mutually exclusive, and Rudder CLI enforces it — setting both fails validation.</li>
<li>Each name is at most 100 characters, or a <code>{{ path || fallback }}</code> template.</li>
<li>Omit the block entirely to filter nothing.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="per-source-keys">Per-source keys</h3><p>Both keys are objects keyed by the local source type — the tokens listed under <a href="#source-types" >Source types</a>. A key naming a source type this destination doesn&rsquo;t support fails validation.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="connection_mode">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">connection_mode</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Maps each source type you connect to the mode its events reach Qualtrics in. Qualtrics accepts only <code>device</code>, for <code>web</code>, <code>android</code>, and <code>ios</code>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>An entry is required for each source type you connect — see <a href="#connect-a-source" >Connect a source</a>.</li>
<li>Any other mode fails validation — for example <code>cloud</code> for <code>web</code>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">connection_mode:
  web: device
  android: device
  ios: device</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="consent_management">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">consent_management</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Consent provider configuration per source type. The entry shape, accepted providers, and the rules on <code>resolution_strategy</code> and <code>consents</code> are shared across all destination types — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#consent-management" >Consent management</a>.
</p>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="source-types">Source types</h2><p>Qualtrics accepts events from these source types in the mentioned connection modes:</p>
<table>
  <thead>
      <tr>
          <th>Source type</th>
          <th>Connection mode</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>web</code></td>
          <td><code>device</code></td>
      </tr>
      <tr>
          <td><code>android</code></td>
          <td><code>device</code></td>
      </tr>
      <tr>
          <td><code>ios</code></td>
          <td><code>device</code></td>
      </tr>
  </tbody>
</table>
<p>Every source type is <code>device</code> only — RudderStack loads Qualtrics&rsquo; own code in the browser or app, and no events pass through RudderStack&rsquo;s servers. The Kotlin and Swift SDKs — <code>android_kotlin</code> and <code>ios_swift</code> — aren&rsquo;t supported. See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/qualtrics/#adding-device-mode-integration" >Adding device mode integration</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="connect-a-source">Connect a source</h2><p>An event stream connection to this destination is checked against two rules at <code>validate</code> time.</p>
<p><strong>The source&rsquo;s type must be supported.</strong> Qualtrics accepts <code>web</code>, <code>android</code>, and <code>ios</code> — the types JavaScript, Android, and iOS SDK sources resolve to. Every other source resolves to a type it doesn&rsquo;t accept — an iOS Swift source to <code>ios_swift</code>, an Android Kotlin source to <code>android_kotlin</code>, and webhook and server-side SDK sources to <code>cloud</code> — and reports, for example:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;qualtrics-prod&#39; (type &#39;qualtrics&#39;) does not support source &#39;my-swift-app&#39;:
source type &#39;ios_swift&#39; is not among supported source types: web, android, ios</code></pre></div>
</div>
<p><strong>The destination config must carry a <code>connection_mode</code> entry for that source type.</strong> This lives on the destination spec, not on the <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-connections/" >connection spec</a>. Without it:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;qualtrics-prod&#39; config has no &#39;connection_mode&#39; entry for source type &#39;web&#39;</code></pre></div>
</div>
<p>Qualtrics needs no additional config keys to connect a source of any supported type.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="secrets">Secrets</h2><p><code>project_id</code> is the only secret key. Write it as a <code>{{ .VAR }}</code> reference and supply the value at apply time:</p>
<div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">config:
  project_id: &#34;{{ .QUALTRICS_PROJECT_ID }}&#34;</code></pre></div>
</div>
<div class="rs-code">
  <div class="rs-code__head">bash<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">export RUDDER_QUALTRICS_PROJECT_ID=&#34;...&#34;
rudder-cli apply

# or
rudder-cli apply --var-file secrets.vars.yaml</code></pre></div>
</div>
<p>Note that:</p>
<ul>
<li><code>rudder-cli import</code> writes only the secrets the API returns, as <code>{{ .VAR }}</code> references, and leaves the others out. Add any secret key it leaves out, then supply the variables before you apply — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#secrets" >Secrets</a>.</li>
<li>On web, the project ID is part of the intercept code&rsquo;s URL in the page, so masking it protects your YAML, not the value itself.</li>
</ul>
<p>See <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/variable-substitution/" >How to Use Variable Substitution in Rudder CLI</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="changes-by-release">Changes by release</h2>
<p>No changes since this type became available.</p>
<p>For changes across every destination type, see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/changes/" >Destination Type Changes by Release</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="see-more">See more</h2><ul>
<li><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/qualtrics/" >Qualtrics Destination</a> for finding the project and brand IDs, and how <code>page</code>, <code>track</code>, and <code>identify</code> calls reach Qualtrics</li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/" >Destination Type Reference for Rudder CLI</a> for the rules shared across destination types</li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-destinations/" >Destination YAML Reference</a> for the spec envelope</li>
</ul>

