Skip to content
Workflow · Search and ads · Opening soon

Marketing ROI by campaign

Export your HubSpot campaigns and deals. Mammoth calculates marketing ROI for each campaign from won deal revenue and spend.

Early access opens shortly. Check back soon.

Someone typed

“calculate marketing ROI for each campaign: revenue from won deals attributed to it minus spend, divided by spend”

The agent read it as

Calculate marketing ROI for each campaign: revenue from won deals attributed to it minus spend, divided by spend, using my HubSpot campaigns and HubSpot deals.

What the agent built

4 steps, each one an ordinary Mammoth step you can open and change.

  1. File
    HubSpot campaigns
    CSV export · 8 rows
  2. File
    HubSpot deals
    CSV export · 30 rows
  3. Step
    Make campaign join key
    Step 1
  4. Step
    Total won revenue by campaign
    Step 2
  5. Join
    Bring in won revenue
    8 of 8 paired
  6. Step
    Calculate campaign ROI
    Step 4
  7. Result
    Campaign marketing ROI
    8 rows
  8. Schedule
    Runs when you say
    Proposed

Checked on the sample files: every step ran, 8 rows came out, and the join paired 8 of 8 rows.

What you get back

The result of that run, the rows to look at first.

Campaign marketing ROISample data8 rows
Campaign nameMarketing ROIWon revenueSpendCampaign ID
Brand Search Q31.3219,5008,400cmp_1001
Webinar Series - Ops Leaders2.1919,8006,200cmp_1002
LinkedIn Demand Gen1.9234,40011,800cmp_1003
Product Launch Email2.5210,9003,100cmp_1004
Retargeting Display1.2212,0005,400cmp_1005
Partner Co-marketing1.8012,9004,600cmp_1006
Founder Webinar Push0.865,2002,800cmp_1007
Holiday Promo Social0.037,4007,200cmp_1008
8 rows in the result. Sample data: illustrative figures, not business results.

How do you calculate marketing ROI by campaign?

Export your HubSpot campaigns and deals as files, then upload them to Mammoth. It matches campaigns, totals won deal revenue by campaign, and calculates ROI as (revenue minus spend) divided by spend.

How it works

How to use the Campaign marketing ROI workflow

  1. 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and checked on the sample files.
  2. 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
  3. 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.

Campaign marketing ROI: questions

What export should you use?
Use a campaigns export and a deals export from HubSpot. The campaigns file needs the campaign fields you use to match records and the spend value. The deals file needs the fields for deal revenue, won status, and campaign attribution.
What happens to rows that do not match?
Rows that do not match a campaign stay out of the matched result. You can review them, fix the source data, or adjust the matching rule and run the workflow again.
How do you change the rules?
Edit the step logic in plain words, for example by changing the join key, the filter for won deals, or the ROI formula. Then rerun the workflow on the exports.

Get early access to this workflow

It will open already built and checked on the sample files. Swap in your own exports and see your result.

Early access opens shortly. Check back soon.

Workflows like this

Decide which pages to keep, update or prune, and find the search terms that spend without converting.

All search and ads templates →