> ## Documentation Index
> Fetch the complete documentation index at: https://data-foundation.rockerbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Building Training Data for MMM

Rockerbox MMM helps brands explore the relationship between marketing investments and revenue based on their historical data. In order to deliver to Rockerbox that historical data, Rockerbox supports two methods:

* Automated ingestion for major ad platforms listed [here](https://data-foundation.rockerbox.com/rockerbox-ui/mta-ui-views/platform-reported-performance.md) as well as revenue for customers selling through Shopify
* UI for customers to upload:
  * revenue from non-Shopify platforms
  * ad spend from platforms not already automatically ingested
  * impression-based marketing, such as email and SMS sends
  * other non-spend factors, including economic indicators, promotional dates, seasonality, and other relevant variables beyond direct marketing spend and impressions.

### Process Overview

1. Rockerbox automatically ingests spend from major ad platforms
2. Customer prepares revenue, additional spend, and other marketing data (collectively these are known as **features**) to include in MMM
3. Customer uploads the data via the **UI Uploader**
4. Customer selects which of the features between 1) and 3) to include
5. Customer kicks off a model build
6. After a few business days, Rockerbox will alert the Customer that the new model is available in platform

> [!NOTE]
>
> To refresh the MMM model, customers will repeat steps 2-4 with updated data.

### Preparing Data

An important and often most time-consuming part of building MMM training data is compiling the required data from all the disparate sources. Any data you already have consolidated into readily available reports will assist in this process.

As you collect your data, we recommend creating a single spreadsheet or dataset that includes:

* Date (ISO 8601 format)

* 1 column for each "feature" you plan to include, where each row includes that feature's value

  <table><tbody><tr><td>**Feature Type**</td><td>**Values to Include**</td><td>**Example Features**</td></tr><tr><td>Revenue</td><td>Revenue in USD</td><td>Amazon eComm, Retail</td></tr><tr><td>Marketing Spend</td><td>Cost in USD</td><td>DSP spend, Reddit spend</td></tr><tr><td>Impressions</td><td>Impression counts or total sends</td><td>Email or SMS sends, PR impressions</td></tr><tr><td>Extra Features</td><td>Binary 1 or 0 for whether a promo was active that day;Binary 1 or 0 for key product launch dates;Discount rate</td><td>Promotions, product launches, site-wide discounts</td></tr></tbody></table>

### Uploading Data

![](https://mintcdn.com/rockerbox-a0a04d23/ulTxc7KHw47DB0NJ/images/help-docs/building-training-data-for-mmm/1712280119140-image.png?fit=max\&auto=format\&n=ulTxc7KHw47DB0NJ\&q=85\&s=90dcf0b64c97631171a3645353d69a3d)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.