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.
Description
This analysis demonstrates how to filter marketing touchpoints from the Log Level MTA dataset in order to apply custom attribution logic. For example, you may want to exclude marketing touchpoints that occur outside a defined attribution window (e.g., more than 30 days before a conversion). After filtering the dataset, attribution credit for conversions must be recalculated across the remaining touchpoints. The query performs two main steps:- Filter marketing touchpoints from the log-level MTA dataset based on custom attribution rules.
- Reinsert conversion records for cases where all marketing touchpoints were removed by the filter, ensuring conversions remain represented in the output dataset.
When to Use This Analysis
- Apply a custom attribution window to marketing touchpoints.
- Remove interactions that occur outside a defined attribution period.
- Recalculate attribution weights after filtering certain touchpoints.
- Create a modified log-level attribution dataset aligned with internal measurement rules.
Source Data
This analysis uses fields from the Log Level MTA dataset.| Field | Description |
|---|---|
conversion_hash_id | Identifier for a unique conversion event |
conversion_key | Conversion identifier used for joins |
timestamp_conv | Timestamp of the conversion event |
timestamp_events | Timestamp of the marketing touchpoint |
sequence_number | Position of the touchpoint in the conversion path |
tier_1, tier_2, tier_3, tier_4, tier_5 | Marketing channel hierarchy |
spend_key | Identifier linking attribution events to platform spend |
normalized, even, first_touch, last_touch | Attribution credit values |
revenue_even | Revenue attributed under the even attribution model |
new_to_file | Indicator for new customer conversions |
Key Metrics
| Metric | Description |
|---|---|
filtered_first_touch | First-touch attribution after filtering touchpoints |
filtered_last_touch | Last-touch attribution after filtering touchpoints |
filtered_even | Even attribution weight across remaining touchpoints |
filtered_normalized | Modeled attribution weight recalculated after filtering |
filtered_sequence_number | Order of touchpoints after filtering |
filtered_total_events | Number of remaining touchpoints for a conversion |
Example 1: Apply Standard Attribution Window Across All Channels
This query filters marketing touchpoints that occur more than 30 days before a conversion and recalculates attribution credit across the remaining touchpoints.Example 2: Apply a Variable Attribution Window by Channel
Note: This example assumes channels are defined usingtier_1 and tier_2. Depending on your taxonomy, you may also need to define lookback windows at the tier_3 level. If a channel is not included in the lookup table, the query applies a very long fallback window so those touchpoints remain included.