Skip to content

Build vs Buy Marketing Attribution: sGTM and BigQuery vs Triple Whale, Northbeam, Wicked Reports and Cometly

Key Takeaways

  • DIY sGTM hosting costs $20/month on Stape.io Pro ($204/year billed annually) or a $1,080/year compute baseline on Cloud Run (2 instances at $45/month each). Standard GA4 exports up to 1M events/day to BigQuery, which charges $6.25/TiB only past 1 TiB/month free.
  • Attribution SaaS stays under a 1% fee-to-ad-spend cap only at scale. Wicked Reports Measure ($5,988/year) requires $49,900/month in ad spend, and Stape Pro costs $5,748/year less. Northbeam Professional ($42,000/year) requires $350,000/month at 1%.
  • Triple Whale, Wicked Reports and Cometly gate warehouse export or APIs behind add-ons or higher tiers. Triple Whale bills on annual GMV and sells Data Warehouse Export as an add-on. Wicked Reports puts Outbound API on Scale ($699/mo). Cometly warns at 90% of a pageview tier, promotes the plan on the next billing cycle, and gates warehouse sync to Enterprise.
  • BigQuery SQL stitches gclid, fbclid, and UTMs cleanly, but click-ID stitching has three limits. GA4 omits wBRAID and gBRAID from the export, Safari caps link-decorated JS cookies at 24 hours, and Meta CAPI deduplicates mainly on a matching browser eventID and server event_id within 48 hours, with fbp or external_id as a fallback.

How much does building click-ID attribution cost compared with buying it?

Updated

Building click-ID attribution costs $240/year in infrastructure, while buying it runs from free tiers to $42,000/year. The build is a first-party pipeline on Stape.io Pro ($20/month) plus Google Analytics 4 exported to BigQuery, which includes the first 1 TiB of queries and 10 GiB of storage free monthly. Paid attribution SaaS starts much higher: Wicked Reports Measure starts at $499/month ($5,988/year), and Northbeam Professional starts at $3,500/month ($42,000/year).

The build-versus-buy decision between DIY sGTM and attribution SaaS turns on two engineering questions. The first is whether your sGTM setup keeps first-party cookies alive past Safari ITP's link-decoration cap (24 hours) and CNAME/IP cap (7 days). The second is whether click IDs cover your spend. If they do not, you need view-through and survey modeling like Northbeam Clicks + Deterministic Views or Triple Whale Total Impact Attribution.

$20/mo

Stape.io Pro monthly ($17 annual) for 500K sGTM requests

$499/mo

Wicked Reports Measure plan for $0 to $2.5M annual revenue

$3.5k/mo

Northbeam Professional starting price (up to $500k/month ad spend)

7 days

Safari ITP expiry cap on outside CNAME or IP-cloaked cookies

DIY stack costs vs attribution SaaS pricing

What does a DIY sGTM and BigQuery stack actually cost?

A DIY sGTM and BigQuery stack costs $20/month on Stape.io Pro or about $90/month on Cloud Run, and BigQuery bills only past its free monthly tiers.

Server-side Google Tag Manager (sGTM) hosting is the main fixed cost of a DIY stack. Stape.io offers $0 Free (10K reqs), Pro at $20/mo ($17 annual) for 500K reqs, Business at $100/mo ($83 annual) for 5M reqs, and Enterprise at $200/mo ($167 annual) for 20M reqs. Self-hosting sGTM on Google Cloud Run costs roughly $45/mo per 1 vCPU / 0.5GB always-allocated instance. Google recommends 2 instances ($90/mo, $1,080/year before load balancer and egress).

GA4 Standard exports up to 1M events/day to BigQuery free (GA4 360 raises this to 20B/day), while optional intraday streaming bills $0.05/GB (about 600,000 events/GB). BigQuery includes 1 TiB of queries and 10 GiB of storage free monthly, then bills $6.25/TiB scanned and $23.552/TiB-month for active logical storage, dropping roughly 50% after 90 unmodified days.

How does DIY compare with six attribution SaaS vendors?

DIY sGTM + BigQuery compares with Triple Whale, Northbeam, Wicked Reports, Cometly, Hyros and DV Rockerbox on starting price, billing meter, contract and export gates.

Stack / VendorStarting priceBilling meter & contractAPI & warehouse export
DIY sGTM + BigQuery
$20/mo Stape Pro ($240/yr) or $90/mo Cloud Run ($1,080/yr)
Request tiers (500K on Pro); BigQuery billed past 1 TiB queries; GA4 cap 1M events/day
Full SQL ownership in BigQuery (collected_traffic_source, event_params, items)
$0 Free tier. Unknown: paid Foundation, Automate, and Enterprise dollar prices are unpublished on triplewhale.com/pricing
Scaled by annual GMV; 12-month paid contracts (monthly or annual with two months free); unlimited users
Data-In and Data-Out API and SQL editor on Foundation+; Data Warehouse Export is a paid Add-on
Starter $1,500/mo (<$1.5M/year); Professional $3,500/mo (up to $500k/month)
Ad spend bands (<$1.5M/year Starter, up to $500k/month Pro) informed by pageviews; Starter month-to-month (Shopify only); Professional/Enterprise annual terms
Professional unlocks unlimited users, data exports, and integrations and non-Shopify stores
Measure $499/mo ($0 to $2.5M rev), Scale $699/mo, Maximize $999/mo
Based on last 12 months of gross revenue (updates on your next renewal); Advanced Signal (Meta CAPI) and 5 Forces AI are $199/mo each on Measure/Scale
CRM/cart API and Outbound API require Scale ($699/mo) or higher
Core and Enterprise sized to monthly pageviews. Unknown: dollar prices are quoted live on a call and not published on cometly.com/pricing
Monthly or annual (20% off); no free trial; auto-promotes tier at 90% pageviews
Cometly API and MCP Access on Core; Snowflake, BigQuery, and Redshift sync requires Enterprise
Starts at $69/mo up to $5k tracked monthly revenue. Unknown: higher slider tiers require interactive quoting or a demo
Tracked monthly revenue ladder with ROI guarantee; SOC 2 and GDPR compliance
Includes Hyros API and MCP connections and all integrations on its single plan
Enterprise quote only. Unknown: DV Rockerbox publishes no contract or warehousing pricing on rockerbox.com
Unified MTA, MMM, and incrementality testing via DoubleVerify enterprise sales
Marketing Data Foundation delivers data warehousing connections into existing warehouses
Watch billing meters that grow when ad spend is flat
GMV-based and pageview-based plans raise your bill when SEO traffic or repeat purchases grow even if ad spend does not change. Triple Whale scales on annual GMV, Wicked Reports prices off last 12 months of gross revenue (updates on your next renewal), and Cometly warns at 90% of monthly pageviews and moves you up a tier on the next billing cycle.

Annual TCO and ad-spend break-even math

What annual cost floor and 1% ad-spend threshold does each option have?

Annual cost floors run from $240/year (Stape Pro billed monthly) to $42,000/year (Northbeam Professional), so the 1% ad-spend threshold runs from $2,000/month to $350,000/month.

OptionAnnual cost floorMonthly ad spend at 1% feeKey financial delta
DIY Stape Pro + BigQuery
$240/yr monthly ($204/yr annual) inside BigQuery free tiers
$2,000/mo puts Stape Pro at 1% of paid ad spend
Saves $5,748/yr vs Wicked Reports Measure
DIY Cloud Run + BigQuery
$1,080/yr compute baseline ($90/mo for 2 instances) + LB
$9,000/mo puts Cloud Run compute at 1% before egress
Leaves $40,920/yr below Northbeam Professional for engineering
Wicked Reports Measure / Scale
$5,988/yr Measure; $8,388/yr Scale (Outbound API)
$49,900/mo for Measure at 1% of paid ad spend
Add $199/mo for Meta CAPI Advanced Signal on Measure/Scale
Northbeam Starter / Pro
$18,000/yr Starter; $42,000/yr Professional
$350,000/mo for Pro at 1% ($175,000/mo at 2%); Starter is 1.2% at its $125,000/mo cap
Justified when Clicks + Deterministic Views shifts multi-channel media budgets

Below $49,900/month in paid media, a $5,988/year license eats more than 1% of ad spend before add-ons. A $42,000/year Northbeam Professional contract requires $350,000/month at 1% of spend (or $175,000/month at 2%). If your team can maintain sGTM and SQL, $240/year DIY infrastructure keeps cash in media until view-through modeling matters.

Click-ID stitching, Safari ITP and BigQuery SQL

Where does deterministic click-ID stitching stop working?

Deterministic click-ID stitching stops working when Safari ITP expires the cookie, when GA4 drops wBRAID and gBRAID, and on non-click video, CTV and podcast views.

DIY click-ID stitching depends on cookie survival, and Safari held 44.24% of US mobile and tablet browser share in October 2026. Safari ITP deletes JS cookies and localStorage after 7 days of inactivity and cuts JS cookie expiry to 24 hours on link-decorated landings. Safari ITP also caps HTTP Set-Cookie headers at 7 days on outside CNAME or IP-cloaked subdomains. For Meta CAPI feedback, browser eventID and server event_id (with identical event name) must arrive within 48 hours so Meta drops duplicates.

Even with same-origin sGTM extending cookies, GA4 omits wBRAID and gBRAID from BigQuery exports, and click tables cannot measure non-click video, CTV, or podcast views. The non-click blind spot is why multi-channel brands eventually add view-through/survey SaaS models like Clicks + Deterministic Views or Total Impact Attribution, or pair BigQuery with open-source MMM.

How do you stitch first-touch and last-touch attribution in BigQuery SQL on GA4 exports?

First-touch and last-touch stitching in BigQuery SQL joins collected_traffic_source.gclid, fbclid from event_params, and UTMs across daily GA4 tables (traffic_source is omitted in intraday tables).

GA4 exports gclid in collected_traffic_source (collected_traffic_source.gclid) and first-acquisition fields in traffic_source on daily events_YYYYMMDD tables. Parse fbclid from page_location and stitch both first and last non-direct touches per purchase:

-- First-touch vs last-touch attribution on GA4 BigQuery daily exports
-- Replace `your-project.analytics_123456789.events_*` with your dataset
WITH raw_touches AS (
  SELECT
    COALESCE(user_id, user_pseudo_id) AS person_key,
    event_timestamp,
    event_name,
    ecommerce.transaction_id AS order_id,
    COALESCE(ecommerce.purchase_revenue_in_usd, 0) AS revenue_usd,
    collected_traffic_source.gclid AS gclid,
    REGEXP_EXTRACT(
      (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location'),
      r'[?&]fbclid=([^&]+)'
    ) AS fbclid,
    COALESCE(
      collected_traffic_source.manual_source,
      IF(collected_traffic_source.gclid IS NOT NULL, 'google', NULL),
      IF(REGEXP_CONTAINS(
        (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location'),
        r'[?&]fbclid='
      ), 'facebook', NULL)
    ) AS touch_source,
    COALESCE(
      collected_traffic_source.manual_medium,
      IF(collected_traffic_source.gclid IS NOT NULL, 'cpc', NULL),
      IF(REGEXP_CONTAINS(
        (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location'),
        r'[?&]fbclid='
      ), 'paid_social', NULL)
    ) AS touch_medium,
    collected_traffic_source.manual_campaign_name AS touch_campaign
  FROM `your-project.analytics_123456789.events_*`
  WHERE _TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 90 DAY))
                          AND FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY))
),
non_direct_touches AS (
  SELECT person_key, event_timestamp, touch_source, touch_medium, touch_campaign, gclid, fbclid
  FROM raw_touches
  WHERE touch_source IS NOT NULL OR gclid IS NOT NULL OR fbclid IS NOT NULL
),
purchases AS (
  SELECT person_key, event_timestamp AS purchase_ts, order_id, revenue_usd
  FROM raw_touches
  WHERE event_name = 'purchase' AND order_id IS NOT NULL
)
SELECT
  p.order_id,
  p.revenue_usd,
  ARRAY_AGG(
    IF(t.event_timestamp IS NOT NULL, STRUCT(t.touch_source, t.touch_medium, t.touch_campaign, t.gclid, t.fbclid), NULL)
    IGNORE NULLS ORDER BY t.event_timestamp ASC LIMIT 1
  )[SAFE_OFFSET(0)] AS first_touch,
  ARRAY_AGG(
    IF(t.event_timestamp IS NOT NULL, STRUCT(t.touch_source, t.touch_medium, t.touch_campaign, t.gclid, t.fbclid), NULL)
    IGNORE NULLS ORDER BY t.event_timestamp DESC LIMIT 1
  )[SAFE_OFFSET(0)] AS last_non_direct_touch
FROM purchases p
LEFT JOIN non_direct_touches t
  ON p.person_key = t.person_key
  AND t.event_timestamp <= p.purchase_ts
GROUP BY p.order_id, p.revenue_usd;

Funnel-fit decision matrix

When should you build DIY sGTM + BigQuery?

Build DIY sGTM + BigQuery when paid ad spend is under $49,900/month, mostly click-driven, and inside GA4 Standard's 1M events/day export limit.

  • Paid ad spend is under $49,900/month and a $5,988/year+ SaaS fee crowds out media compared to $240/year infrastructure.
  • Volume fits under GA4 Standard's 1M events/day export limit and you want SQL joins from collected_traffic_source directly to Stripe, Shopify, or CRM revenue.
  • Spend is mostly click-driven (search, shopping, email, click-led social) and your team can maintain same-origin sGTM and event_id deduplication.

When should you buy attribution SaaS?

Buy attribution SaaS when you need turnkey setup without engineering time, view-through modeling at omnichannel scale, or turnkey CRM, subscription and call-funnel connectors.

  • Triple Whale $0 Free (first and last click attribution) fits ecommerce teams that want turnkey setup without engineering time, and paid plans add Total Impact Attribution.
  • Northbeam Professional (from $3,500/mo, with Clicks + Deterministic Views; Starter begins at $1,500/mo on Shopify) fits omnichannel spenders near $350,000/month running view-heavy campaigns. Rockerbox enterprise MTA, MMM, and incrementality testing is the other option for those spenders.
  • Long-cycle CRM, subscription, and call funnels that need turnkey connectors fit three vendors: Wicked Reports (from $499/mo; API on Scale at $699/mo), Cometly (pageview-sized B2B/SaaS), or Hyros (from $69/mo up to $5k tracked monthly revenue).

Related technical guides

Companion references on GrowthVector.io

For DIY execution, read our server-side GTM and Safari ITP guide, our Meta attribution and EMQ guide, and our Google Meridian MMM guide. Compare vendor profiles in our analytics and attribution tools directory or see GrowthVector.io's SEO services for aligning organic and paid measurement.

Common Questions

Does GA4 BigQuery Export replace a paid attribution tool?

GA4 BigQuery Export replaces a paid attribution tool only for click-driven funnels under 1M events/day. GA4 exports collected_traffic_source.gclid and UTMs, but excludes wBRAID and gBRAID and cannot see non-click ad views.

Why are Triple Whale, Cometly, Hyros, and DV Rockerbox missing full public price tables?

Triple Whale, Cometly, Hyros, and DV Rockerbox are missing full public price tables because each prices off a volume meter or a sales quote. Triple Whale uses annual GMV, Cometly uses monthly pageviews, Hyros shows $69/mo up to $5k tracked monthly revenue, and Rockerbox is quote-only. Unknown: Triple Whale's paid Foundation, Automate, and Enterprise dollar prices (unpublished), Cometly's Core and Enterprise prices (quoted on a call), Hyros tiers above the entry slider (slider or demo), and the Rockerbox price (DoubleVerify publishes no price card).

Is Wicked Reports Outbound API included on the $499/month Measure plan?

No. Wicked Reports Measure ($499/mo for $0 to $2.5M revenue) covers major ad platform, standard cart, and standard CRM integrations, while CRM/cart API integrations and Outbound API start on Scale ($699/mo). Wicked Reports Advanced Signal (Meta CAPI) adds $199/mo.

What happens if my site exceeds its monthly pageview tier on Cometly?

Cometly never throttles attribution: it notifies you at 90% of your pageview tier and automatically promotes your plan on the next billing cycle. Cometly offers no free trial.