New to Brand
When a template uses start_date, both start_date and end_date are inclusive. end_date may equal today. The previous day's data becomes available overnight, so today's rows first appear after the next daily run.
The New to Brand template tracks how many new customers versus returning customers a brand gets during specific time periods. This helps partners see how effective their customer acquisition efforts are and evaluate the impact of marketing campaigns on brand growth.
The template uses past purchase behavior to classify customers within a specified time period (26 or 52 weeks). Customers are classified as 'new' if they have no purchase history with the brand during the lookback window.
You can perform the following actions with this template:
- Find out which customers are new to a specific brand during a given time period.
- Examine patterns in customer acquisition over time.
- Evaluate how effective marketing campaigns are at attracting new customers.
- Compare new customer numbers across brands and categories.
- Calculate the percentage of new customers and the percentage of sales they contribute.
A minimum of 100 users is required for analysis.
Run the query
Use the following query to calculate the metrics:
set cleanroom_name = 'CLEANROOM_NAME';
call samooha_by_snowflake_local_db.consumer.run_analysis(
$cleanroom_name, -- cleanroom name
'new_to_brand',
[], -- Consumer tables (none needed)
[], -- Provider tables (none needed)
object_construct(
'start_date', '2025-01-01',
'end_date', '2025-03-31',
'lookback_weeks', '26 weeks',
'brands', ['BRAND_NAME_1'],
'categories', ['CATEGORY_NAME_1'],
'aggregation_level', ['delivered_entity_brand']
)
);
Parameters
| Parameter | Description | Data type | Allowed values | Required or optional |
|---|---|---|---|---|
start_date | Sets the start of the analysis period (inclusive). | string | Must be no earlier than 3 years ago. The inclusive range from start_date through end_date must be at least 30 days (end_date is at least start_date plus 29 days). Use the following format: YYYY-MM-DD. | required |
end_date | Sets the end of the analysis period (inclusive). | string | Must be no earlier than 3 years ago and no later than today. Use the following format: YYYY-MM-DD. Data through the previous day is available. If end_date is today, the query runs, but today's data is empty until the next daily pipeline run. | required |
lookback_weeks | Defines the historical period for determining customer status. | string | "26 weeks", "52 weeks" | required |
aggregation_level | Determines how results are grouped. | array | "delivered_entity_brand" | optional |
brands | An array of brand names to filter the analysis. | array | Brand names as they appear in the catalog | optional |
Result
| Result | Description |
|---|---|
PARAMS_JSON | A JSON object detailing all input parameters. |
AGGREGATION_LEVEL | The specified dimensions for aggregation. |
NEW_CUSTOMER_PCT | Percentage of customers who are new to the brand. |
NEW_CUSTOMER_SALES | Total sales from customers who are new to the brand. |
TOTAL_SALES | Total sales from all customers in the period. |
NEW_CUSTOMER_SALES_PCT | Percentage of sales from customers who are new to the brand. |
Example result
| PARAMS_JSON | DELIVERED_ENTITY_BRAND | NEW_CUSTOMER_PCT | NEW_CUSTOMER_SALES | TOTAL_SALES | NEW_CUSTOMER_SALES_PCT |
|---|---|---|---|---|---|
| {"start_date":"2025-01-01", "end_dat ... } | BRAND_NAME_1 | 37.5% | $12,500 | $45,000 | 27.8% |
Data collection and classification
The New to Brand template organizes and categorizes the data using the following methods:
- Minimum user threshold. Returns results when at least 100 unique users are present in the analysis period.
- Date validation. Requires dates no earlier than 3 years ago and no later than today (both inclusive). The inclusive range must be at least 30 days (
end_dateis at leaststart_dateplus 29 days). - Aggregated results. Returns aggregated metrics; individual customer purchase data is never exposed.
- Historical boundary enforcement. Limits lookback analysis to defined time periods.
- Parameter validation. Validates parameters; invalid parameters result in empty result sets.
Use cases
The following use cases are examples of how this template works:
- Campaign effectiveness. Measures the success of marketing campaigns in acquiring new customers to your brand.
- Market expansion analysis. Understands brand penetration and growth in new customer segments.
- Customer acquisition tracking. Monitors new customer acquisition trends over time.
- Competitive analysis. Compares new customer acquisition rates across different brands or categories.
- Seasonal pattern analysis. Identifies seasonal trends in new customer acquisitions.
Best practices
Consider the following best practices when running this query:
- Choose appropriate lookback windows. Use 26 weeks for shorter marketing cycles and seasonal analysis, and use 52 weeks for comprehensive annual analysis.
- Align with business cycles. Select analysis periods that correspond to marketing campaigns or business reporting periods.
- Consider seasonality. Account for seasonal shopping patterns when interpreting new customer percentages.
- Use consistent time periods. Compare the results across similar time periods to identify trends.
- Filter by relevant brands/categories. Focus your analysis on specific brands or categories of interest.
- Account for external factors. Consider market conditions and marketing activities when interpreting results.
Methodology
This template employs various methodologies to gather, analyze, and interpret data.
Historical comparison approach
The New to Brand calculation methodology identifies and quantifies customer acquisition patterns by distinguishing between new and returning customers for specific brands over defined time periods. The methodology employs a historical comparison approach to classify customers based on their previous purchase behavior.
Calculation method
The calculation framework consists of four phases.
Phase 1: Customer cohort definition
The analysis begins by selecting all customers who made purchases during the specified analysis period.
Phase 2: Historical purchase analysis
For each customer in the cohort, the methodology examines a customer's purchase history during the lookback window.
Phase 3: Customer classification
Customers are classified as "new to brand" based on their purchase history in the lookback window relative to their first purchase in the analysis period.
- New to Brand. The customer made their first purchase during the analysis period and did not purchase the brand during the lookback window before that purchase.
- Returning to Brand. The customer made their first purchase during the analysis period and also purchased the brand at least once during the lookback window before that purchase.
Phase 4: Metrics computation
The final metrics are calculated using aggregated customer classification results.
Lookback window selection
This methodology supports the following standardized lookback windows:
- 26 weeks (6 months). Appropriate for seasonal analysis and shorter marketing cycles
- 52 weeks (12 months). Comprehensive annual customer behavior analysis
The lookback window selection impacts classification sensitivity.
- Shorter windows (26 weeks) increase the number of new customers but may misclassify seasonal shoppers.
- Longer windows (52 weeks) provide more comprehensive historical context but may undercount new customers.
Temporal alignment
The calculation ensures data and process consistencies.
- Analysis window. Clearly defines start and end dates for customer activity measurement.
- Lookback window. Historical periods precede each customer's first purchase in the analysis window.
- Non-overlapping windows. Ensures lookback windows don't overlap with analysis windows.
Limitations and considerations
Keep in mind the following limitations and considerations when using this template:
- Brand switching. Customers who move between brands in the same portfolio might be classified incorrectly.
- Seasonal patterns. Products with strong seasonality might have inflated rates of new customers.
- Data completeness. Results rely on having complete historical data during the lookback window.
- Business context. Consider marketing activities and business cycles when interpreting results.
- Comparative analysis. Results are more meaningful when comparing data over multiple time periods.
- Market dynamics. External factors in the market can also impact customer acquisition trends.
- Minimum threshold enforcement. Results require at least 100 unique users for statistical significance.