Agency · Front RowIn use
Attribution recovery
Shopify Attribution Recovery for Google Ads
Shopify custom app recovering marketing attribution for phone-assisted and staff-created orders and returning conversions to Google Ads.
stack: Next.js 15 · PostgreSQL · Shopify Admin GraphQL · Google Ads API · Call Tracking
Built for Front Row's digital division. Client details withheld.
01 / Problem
The problem
When customers call in or staff place draft orders inside Shopify, web session attribution is lost—under-reporting paid search performance in Google Ads.
02 / Architecture
The build
- Shopify custom app integrating call-tracking records with Shopify order metadata via Shopify Admin GraphQL.
- Matches phone-assisted and staff-created orders back to originating sessions and attaches explicit confidence labels.
- Sends recovered conversion events to the Google Ads API from a Next.js 15 and Postgres application.
03 / Diagram
System schematic
04 / Scope
Status & scale
Status
In use
Order types
Phone & staff-created
Output
Confidence-labeled conversions
Destination
Google Ads API
05 / Stack
Components
- Next.js 15
- PostgreSQL
- Shopify Admin GraphQL
- Google Ads API
- Call Tracking
06 / Writing
Related writing
- EDI 850 purchase order explained for engineersEDI 850 explained for engineers: the segments in an X12 purchase order, a worked example, how it maps to the 855 acknowledgment, and how to model it.
- EDI 856 (advance ship notice) explained for engineersEDI 856 explained for engineers: the BSN header, the HL shipment, order, pack and item hierarchy, the segments that matter, and how to model it safely.
- Product feed management: a custom feed engine for Merchant Center, Microsoft and MetaHow a product feed management engine was built for Magento and Merchant Center: CEL rules, pgvector enrichment, channel adapters and a parallel cutover.
- NetSuite Shopify integration: inventory sync with drift reconciliationA NetSuite Shopify integration with NetSuite as master: pending Shopify demand, certificate OAuth, compare-and-set writes and drift reconciliation.
- Offline conversion tracking for Google Ads: click IDs, hashed identities and GA4Offline conversion tracking for phone sales: three ways to send them back to Google Ads, the identifier each needs, and how to check the value is real.
- What is EDI? Retail X12 documents 850, 855, 856, 810 and 846 for engineersWhat is EDI? A working explanation of the five retail X12 documents, how they map to an order lifecycle, and where an EDI network like SPS Commerce fits.