Skip to content

Paid Search Attribution

E-commerce

Send server-side Google Ads conversions from Shopify

Send verified Shopify orders to Google Ads via Data Manager API with gclid and hashed email matching, keeping secondary deduplication safe alongside your Google tag.

Free monthly allowance on web events and outbound sends. No per-seat fees.

6 min read20 min setupUpdated
Editorial photograph of a sunny independent retail fulfillment table with brown kraft shipping boxes, brass tape dispenser, and folded linen aprons in warm daylight.
Verified Shopify orders ship to Google Ads from the server so Smart Bidding sees completed revenue even when browser tags are blocked.

Interactive CPA recovery simulator

See how many Shopify orders your Google tag is dropping

Adjust monthly Google Ads spend, completed Shopify orders, and Safari ITP / blocker loss rate to compare browser-pixel CPA against server-side recovery.

Illustrative Shopify storefront · 30-day cohort
$18,000

Combined Search, Shopping, and Performance Max spend.

350

Completed, non-refunded orders recorded in Shopify.

34%

Typical Safari ITP + ad blocker + iOS redirect loss is 25% to 40%.

Before·

Default reporting

Browser pixel only

Pixel-reported CPA

$78

119 real orders invisible to ad bidding

  • 34% of checkout confirmations drop on Safari ITP and strict blockers.
  • Ad platform bidding sees inflated CPA and throttles winning ad sets.
  • Double-counting risk if server events are sent without matching event_id.
With Apex·

With Apex

Server CAPI + event_id dedup

Verified CPA with Apex CAPI

$54

331 of 350 orders matched server-side

  • Apex hashes email, phone, and click IDs (fbclid/gclid/ttclid) server-side.
  • Matching event_id ensures Meta, Google, and TikTok deduplicate cleanly.
  • Only paid, non-refunded orders feed back into ad optimization.

Browser-only conversions

231

34% blocked by ITP / ad blockers

Recovered via Apex CAPI

+100

$11,800 verified revenue restored

Reported CPA shift

$78 -> $54

Same spend, verified server deduplication

30-day conversion signal comparison

Signal pathMatched ordersVerified revenueReported CPA
Browser pixel alone231$27,258$78
Browser + Apex Server CAPI331$39,058$54

Safe parallel verification before switching primary bidding

Illustrative model assuming 84% server-side recovery of browser-blocked conversions via gclid and SHA-256 email matching. Keep Apex's conversion action secondary for 14 days beside your browser tag to verify real order parity.

The complete playbook

Step-by-step setup, worked math, and real limits.

Follow the steps below, check how this interacts with tools you already run, and inspect live Apex pricing before turning anything on.

How it works without Apex

Connect Shopify and Google Ads in Apex, install the web snippet so gclid is captured at landing, and enable server-side conversion sends through Google's Data Manager API. Apex forwards only completed, non-refunded Shopify orders matched by gclid or SHA-256 email, and sets the conversion action as secondary whenever an existing Google tag already tracks purchases so Google never double-counts a sale.

How Apex does it for you

Apex ingests Shopify orders via real-time webhook plus daily backfill, joins each order to the visitor's gclid and email, creates or binds the Google Ads conversion action safely, and retries transient Google API rejections automatically.

How to set this up in 5 steps

  1. Connect Shopify and mark live vs development stores

    Open Integrations in Apex, enter your exact Shopify store domain, approve order read scopes, and mark production vs development stores under Settings -> Workspace -> Environments so test orders never reach Google Ads.

  2. Install the Apex snippet so gclid is captured at landing

    Add the Apex tracking snippet to your storefront theme so every paid search click stores its gclid first-party and links cleanly to the shopper's checkout email.

  3. Connect Google Ads with adwords and datamanager scopes

    Authorize Google Ads via OAuth 2.0, pick your Customer ID (not a manager-only account), and verify hourly campaign spend and click syncs appear in Attribution.

  4. Create or bind your purchase conversion without double-counting

    Use Apex's Google Ads checklist to create the purchase conversion action. If your Google tag already counts purchases, keep Apex's conversion action secondary until you compare counts for 14 days.

  5. Enable enhanced conversions for leads and run a test send

    Turn on enhanced conversions for leads in Google Ads (Goals -> Settings) so orders without a gclid still match by hashed email, tick Apex's conversion sending agreement, and press Test.

Why browser tags miss Shopify sales

Most Shopify stores rely on a client-side Google tag firing on the checkout thank-you page. That worked when cookies lasted 90 days and shoppers rarely switched apps mid-checkout. Today, three everyday conditions break browser-only purchase reporting:

  • Safari ITP caps client-side storage: If a shopper clicks a Google Shopping ad on iPhone Safari and buys eight days later, client cookies expire before checkout.
  • Strict ad blockers strip the Google tag: Privacy browsers and extension blockers stop gtag.js from loading even though the customer still completes a real Shopify order.
  • Accelerated checkouts redirect off-domain: Shop Pay, Apple Pay, and express wallets frequently interrupt client-side scripts or drop query strings before the confirmation page finishes firing.

When Google Ads sees only 65% of your real orders, Smart Bidding calculates a falsely high cost per acquisition (CPA). Target ROAS and Maximize Conversion Value campaigns pull back spend on your best keywords simply because the browser never reported the sale.

Model your recovered CPA

Use the simulator above to plug in your store's monthly Google Ads budget and completed Shopify orders. Even a 30% browser drop rate makes a healthy $51 CPA look like $78 inside Google Ads. Sending verified orders directly from the server restores the missing purchase signal without increasing ad spend.

Step-by-step setup

1. Connect Shopify and lock your environments

Open Integrations in Apex and click Connect on Shopify. Enter your exact store domain (your-store.myshopify.com) and approve read scopes for orders.

If your team runs a staging or development Shopify store alongside production, open Settings -> Workspace -> Environments and mark each store as live or development. That guarantees test checkouts never leak into your Google Ads account.

2. Install the Apex snippet to capture `gclid`

Place the Apex tracking snippet on your storefront so every landing visit automatically captures Google's gclid click parameter in first-party context. When that visitor later checks out on Shopify, Apex stitches the completed order's customer email back to the original click without touching Shopify's checkout sandbox scripts.

3. Authorize Google Ads with Data Manager scopes

Open Integrations and connect Google Ads via OAuth 2.0. Apex requests two scopes:

ScopeWhat Apex doesWhat Apex never touches
adwordsSyncs hourly campaign spend, clicks, and impressions; lists ad accounts; creates conversion actions you approveNever creates, edits, or pauses campaigns, budgets, or bids
datamanagerUploads verified purchase conversions and buyer lists through Google's Data Manager APINever alters ad copy or targeting rules

Select a real Google Ads Customer ID (not a manager-only MCC account). Within minutes, Apex pulls the last 30 days of spend and begins hourly syncs.

4. Create the purchase conversion action safely

Inside the Google Ads checklist in Apex, review the Sales conversion row and click Set up. If Apex detects that a browser Google tag already tracks purchases on your account, Apex creates its server-side sales conversion as secondary so Google Ads does not double-count revenue.

5. Turn on enhanced conversions for leads and run a test send

Orders carrying a gclid match immediately. For shoppers whose gclid was stripped by Safari ITP or cross-device checkout, Google Ads can still attribute the sale from SHA-256 hashed customer email once Enhanced conversions for leads is turned on in Google Ads (Goals -> Settings).

Finally, check the conversion-sending agreement box in Apex and click Test. Google validates the payload format and conversion action ID without recording a fake sale. Note that newly created Google Ads conversion actions sometimes return a temporary rejection for a few minutes while Google finishes provisioning; Apex displays Google's exact message and retries automatically.

Avoid double-counting beside your Google tag

Never rip out your existing Google tag on day one. Keep Apex's server conversion set to secondary for 14 days while comparing three numbers side by side:

  1. Shopify completed orders (net of failed checkouts and cancellations)
  2. Existing Google tag primary purchases
  3. Apex server-side secondary purchases

Once you confirm that Apex's server conversion matches Shopify order counts cleanly and captures the 25% to 40% of orders your browser tag missed, switch Apex's conversion action to Primary in Google Ads and demote (or remove) the redundant browser purchase action.

Tip: If you also want Google Ads to stop paying for clicks from people who just bought, pair this setup with a synced buyer exclusion list under Attribution -> Ad platforms.

What this costs on Apex

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for Shopify store with 10,000 monthly visits and 350 Google-attributed orders

$0 / month

Fully inside Apex's free monthly allowances (resets every calendar month).

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
Storefront page views and gclid captures (10,000 sessions averaging 3.5 events per visit via the Apex snippet)
35,000 / mo1M / month$5 per 100K events$0
Attribution
Attributed paid-search Shopify orders (350 Google Ads orders matched to gclid or shopper email (1,500/mo included free))
350 / mo1.5K / month$0.05 per attributed conversion$0
Ad platform activations
Server-side Google Ads conversion sends (One verified purchase event sent per completed Shopify order)
350 / mo100K / month$10 per 100K sends$0

Shopify and Google Ads OAuth connectors are included at no extra platform fee. Individual event history stays queryable for 13 months without a card, 3 years with a card on file, and 7 years once you've paid an invoice. See the live pricing page.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
Google Ads Data Manager API$0/moIncluded with your existing Google Ads account
Shopify order webhooks$0/moIncluded on all standard Shopify plans

Every meter resets its monthly free allowance automatically, and connecting Shopify and Google Ads adds zero connector surcharges or per-seat fees.

Launch with your AI agent

Wire Shopify to Google Ads server conversions from Cursor or Claude Code

After connecting Shopify and Google Ads via OAuth in the Apex dashboard, ask your coding agent to inspect your purchase conversion, preview the server payload, and turn on Google Ads conversion sending.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Paste this prompt into your AI editor (scroll to read full prompt)

In my Apex workspace, check get_conversion_source_of_truth, call list_ad_platform_sends to see whether Google Ads is receiving Shopify purchases, create a secondary Google purchase conversion with create_google_purchase_conversion if a Google tag is already live, preview the payload with preview_ad_platform_send, and confirm before enabling add_ad_platform_send.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

storefront · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Feed Google Ads completed Shopify revenue, not partial browser pixels.

Connect Shopify and Google Ads in 20 minutes, keep your existing Google tag safe from double-counting, and verify every recovered conversion before switching primary bidding.