Prompt
I’m building an ecommerce attribution setup across Meta and Google, where do I start?
Latest observation
Start by defining what you want attribution to answer, then build the measurement stack around that. For ecommerce across Meta + Google, a good starting path is:
1) Define the business questions
Decide which decisions attribution should support, for example:
- Which channel is driving incremental revenue?
- What is the best campaign / ad set / keyword mix?
- What is the time to purchase?
- What is the split between new vs returning customers?
- How do prospecting and retargeting assist conversions?
This matters because “best” attribution model depends on the decision.
2) Standardize your conversion events
Make sure Meta and Google are using the same event definitions as much as possible:
ViewContentAddToCartInitiateCheckoutPurchase
For ecommerce, Purchase should include:
valuecurrencytransaction_id- ideally product-level details via
items
Also decide whether you’ll track:
- gross revenue or net revenue
- tax/shipping included or excluded
- refunds/cancellations
3) Implement tracking properly
At minimum, you want:
Website tracking
- GA4
- Meta Pixel
- Google Ads conversion tags
- Preferably via Google Tag Manager
Server-side / first-party tracking
For better reliability, add:
- Meta Conversions API (CAPI)
- Google Enhanced Conversions
- ideally server-side GTM or a backend event pipeline
This helps with ad blockers, cookie loss, and iOS/privacy limitations.
4) Get identity and deduplication right
You need consistent identifiers to stitch browser and server events:
event_idfor deduplication- hashed email/phone where allowed
- click IDs:
- gclid for Google
- fbclid for Meta, plus Meta’s event matching inputs
- persistent first-party cookies for session/user stitching
Without deduplication, you’ll overcount purchases.
5) Enforce clean UTM governance
For all paid traffic, use a consistent UTM structure:
utm_sourceutm_mediumutm_campaignutm_contentutm_term
Example:
utm_source=metautm_medium=paid_socialutm_campaign=prospecting_spring_saleutm_content=video_1utm_term=interest_fitness
Create a naming convention and never free-type campaign names inconsistently.
6) Build a single source of truth
Pull data into one place, ideally:
- a warehouse like BigQuery, Snowflake, or Redshift
- connect:
- Meta ads data
- Google Ads data
- GA4 events
- Shopify / ecommerce backend orders
This lets you compare platform-reported conversions vs actual orders.
7) Decide your attribution layers
Use multiple layers, not one model:
Operational reporting
Use platform attribution for optimization:
- Meta reports for Meta delivery decisions
- Google Ads reports for Google bidding decisions
Cross-channel reporting
Use a neutral model in your warehouse:
- last non-direct click
- data-driven if available
- position-based / time-decay
- or a custom rule set
Incrementality
For real business truth, run:
- geo holdouts
- conversion lift tests
- budget holdouts
- audience exclusions tests
Attribution alone won’t tell you incrementality.
8) Build a reconciliation framework
Expect platform numbers to differ. Track:
- orders in backend
- GA4 purchases
- Meta reported purchases
- Google Ads conversions
Measure:
- event match rate
- deduplication rate
- attribution window differences
- view-through vs click-through differences
- modeled vs observed conversions
9) Start with a simple dashboard
Your first dashboard should show:
- spend
- revenue
- ROAS
- CAC / CPA
- MER (marketing efficiency ratio = total revenue / total ad spend)
- new customer revenue
- returning customer revenue
- by channel, campaign, and product category
10) Don’t over-engineer too early
A practical setup for most ecommerce brands is:
- GA4 + Meta Pixel + Google Ads tags
- GTM implementation with clean UTMs
- CAPI + Enhanced Conversions
- Warehouse ingestion
- Basic attribution reporting
- Incrementality testing later
If you want the fastest path
Start here:
- Map your events and naming conventions
- Implement GA4 + Meta Pixel + Google Ads via GTM
- Add server-side tracking
- Standardize UTMs
- Connect platform data + order data into BigQuery
- Build a reconciliation dashboard
- Then layer in incrementality tests
If you want, I can give you a step-by-step implementation checklist for:
- Shopify,
- custom ecommerce, or
- a data warehouse-based attribution model.