> For the complete documentation index, see [llms.txt](https://help.daasity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.daasity.com/core-concepts/data-models/unified-schemas/data-marts/marketing-data-mart.md).

# Marketing Data Mart

## Overview

The marketing data mart \[`dm_mkt`] is designed to allow merchants to leverage our [Unified Marketing Schema (UMS)](/core-concepts/data-models/unified-schemas/unified-marketing-schema-ums.md), [Unified Order Schema (UTS)](/core-concepts/data-models/unified-schemas/unified-traffic-schema-uts.md) and [Channel Attribution Data Mart](/core-concepts/data-models/unified-schemas/data-marts/channel-attribution-data-mart.md) to understand the marketing performance of different channels and Ad platforms using different attribution methodologies to make better decisions

## Entity Relationship Diagram (ERD)

[Click on this link to view](https://lucid.app/documents/embedded/89eef7a5-ecb4-477f-acaf-a5b7c1f5550a) the ERD for the Marketing Data Mart \[`dm_mkt`] illustrating the different tables and keys to join across tables.

## Tables & Source Code

There are two core tables in the \[`dm_mkt`] schema:

* \[`dm_mkt.fct_assisted_orders`] - this table is a summary table that contains a record for each day, channel, vendor (marketing platform) and store.  It is designed to aggregate all the non-last click touches that drove an order to help better understand marketing performance
* \[`dm_mkt.fct_vendor_level_performance`] - this table is a summary table that contains a record for each day, channel, vendor (marketing platform) and store.  It is designed to combine attributed sales and marketing spend from each of the different attribution types to easily enable a comparison of marketing performance metrics (ROAS, CPO, CPA, etc.).  This table is optimized for reporting and is the source for the Marketing Attribution View

Users with access to our [Code Repository](/technical-docs/transform-code/code-repository.md) can review our code in the following Github repository:

* [Marketing Data Mart Transformation Code](https://github.com/Daasity/platform-sql-shared/tree/master/scripts/datamart/14_marketing)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.daasity.com/core-concepts/data-models/unified-schemas/data-marts/marketing-data-mart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
