Why this matters
Every platform marks its own homework. The ad platform says its adverts produced the sales. The analytics tool says search did. Your order system says nothing about either. None of them answers the question you care about: which pounds spent came back as sales?
To answer it you have to put the files side by side and match them up, a tedious spreadsheet job most owners never do. Claude Code can do it on your own computer. Where it goes wrong is quiet. A join that silently drops a third of your orders still produces a tidy chart. So a good part of this course is about checking the working. An answer you cannot trace is an answer you cannot spend money on.
Before you start
- Claude Code, installed and working. If it is not, take “Setting up Claude Code on your computer” first. It needs a paid Claude plan. Use it in a terminal, which is the text window where you type commands, or in the Code tab of the Claude desktop app.
- Three kinds of export for one full month. Ad spend by campaign and day. Website visits by source and campaign. Orders with a date, a value and whatever your system records about where each came from.
Four safety rules for the whole course:
- Work in a dedicated folder. Claude Code works in the folder you start it in. Give it a new one that holds only this analysis.
- Review before you approve. Claude Code asks before it changes files or runs a command. Read what it proposes and approve one action at a time.
- Keep the originals elsewhere. The files in the analysis folder are copies. Your backup and the platforms hold the originals.
- Give it no credentials. This course uses exported files only. Claude Code needs no login to your ad account, website or shop.
Anything Claude Code reads is sent to Anthropic’s service to be processed. Never put customer personal data, passwords or confidential figures in the folder. A sales export nearly always holds names, emails and addresses. You remove those in Step 1, before Claude Code is opened.
Commands and file names were checked against the Claude Code documentation at the time of writing. Type /help to see the current commands.
Step 1: Gather the exports into one folder
Create a folder in your Documents called campaign-analysis. Inside it create three folders: exports, working and reports. Inside exports create a folder named for the month, written year then month, such as 2026-10.
In each platform set the date range to the full month and download the data as CSV. A CSV is a plain text spreadsheet file that any program can read. If a platform only offers an Excel file, open it and save it as CSV, because Claude Code’s file reader does not open Excel files directly. Ask for daily rows where you can.
Before the sales export goes near the folder, open it in your spreadsheet program. Delete every column that identifies a person: name, email, phone, address, delivery notes. Keep the order number, date, value, product and any source, campaign or discount code columns. Save the stripped copy into the month folder under a plain name. I use ads-google.csv, ads-meta.csv, analytics.csv and sales.csv.
Open Claude Code in campaign-analysis. In a terminal, move to the folder with cd and type claude. In the desktop app, open the folder from the Code tab.
This folder is for analysing my marketing campaigns. The raw exports for one month are in exports/[YEAR-MONTH]/.
Do an inventory only. Do not analyse anything yet.
For each file tell me:
- the file name and roughly how many rows it has
- the column headings, exactly as written
- the first and last date in it
- whether any heading suggests personal data, such as a name, email, phone number or address. If one does, stop and tell me. Do not read further into that file.
Then tell me whether all the files cover the same dates.
Rule for this whole folder: files in exports/ are never edited, renamed or deleted. Anything you create goes in working/ or reports/.
If it flags personal data or mismatched dates, fix the export and start again.
What good looks like: an inventory that matches what you downloaded, the same dates on every file and no personal data in any of them. In Step 2 the files that have never met get joined, which is where the real picture starts to show.