Accurate country-level profit requires two pieces of setup in Reportslayer: mapping ad campaigns to countries and allocating shared overhead costs like salaries, rent, agencies, and software.
Order-level costs such as product costs (COGS), shipping costs, and payment processing fees already follow each order's shipping country automatically, so you do not need country rules for them. Once you map your ad spend and overhead, you can filter or split your P&L dashboard by country.
Step 1: Map ad campaigns to countries
Ad platforms do not always tag campaigns with a clean country field, so you map campaigns to two-letter ISO country codes (such as US, DE, or GB) in Claude or ChatGPT.
Before saving your mapping rules, ask Claude or ChatGPT to preview the last 30 days of matched and unmatched spend. That lets you confirm that your campaign naming patterns catch the right spend in each market.
Multi-country campaigns or campaigns without a matching rule stay under No country.
Step 2: Allocate overhead costs to countries
Shared and fixed overhead costs (such as salaries, rent, agencies, and software) can be allocated to countries in three ways in Claude, ChatGPT, or under Costs:
- Assign to one country: Put 100% of a cost line into a single country, such as a local warehouse or a country-specific agency.
- Fixed percentages: Split by fixed percentages across countries. Any unallocated remainder stays in No country.
- Monthly share: Spread a cost automatically in proportion to each country's sales, orders, or units.
Step 3: View profit by country on your dashboard
Open your P&L dashboard and filter or split by Country. You can track contribution margin, net profit, MER, CAC, and POAS for each market side by side.
When you filter a dashboard to specific countries, Reportslayer flags any unallocated ad spend or overhead sitting in No country. You can see what was excluded from the filtered view and decide whether to map it.
Example prompts for Claude or ChatGPT
- "Preview country mapping rules for my ad campaigns over the last 30 days using our campaign name prefixes like US, DE, and GB, and show matched versus unmatched spend before saving."
- "Save those campaign country rules and list any active campaigns that still fall under No country."
- "Allocate our monthly agency retainer 60% to US and 40% to GB starting this month, and allocate our software costs automatically by each country's share of Shopify gross sales."
- "Show contribution margin, net profit, MER, CAC, and POAS by country for the last 30 days, and tell me how much spend or overhead is still in No country."