Most e-commerce stores still run a default GA4 configuration and lose critical buying-journey data as a result. An advanced setup with a proper e-commerce DataLayer and Looker Studio dashboards typically cuts CPA by 25% by exposing which channels are actually profitable.
Since Universal Analytics was sunset in July 2024, Google Analytics 4 has become the default measurement platform for e-commerce worldwide. Yet a majority of online stores still rely on the out-of-the-box setup — a basic GA4 tag dropped in through Google Tag Manager with no structured DataLayer, no dedicated e-commerce events and no actionable dashboards. The result: decisions made in the dark and wasted ad spend.
At Webotic Data, we have configured GA4 for more than 45 e-commerce brands in 2025. This article shares our full methodology, from the fundamentals to the Looker Studio dashboards we deploy on every engagement.
Why GA4 is a step change from Universal Analytics
Universal Analytics was built around sessions and pageviews. GA4 adopts a fully event-driven model. Every interaction — pageview, click, add-to-cart, purchase — is an event with structured parameters. That architecture delivers three decisive advantages for modern e-commerce brands:
- Native cross-device attribution — In many markets, 78% of e-commerce traffic comes from mobile, yet 42% of final conversions happen on desktop. GA4 stitches these journeys together via Google Signals, something Universal Analytics could not do natively.
- Conversion modeling — With the decline of third-party cookies and the rollout of Consent Mode v2, GA4 models unobserved conversions. Without this modeling you lose 30 to 50% of your data.
- Built-in predictive analytics — Predictive audiences (purchase probability, churn probability) let you target the visitors most likely to convert in the next 7 days.
For mobile-first markets in particular, the stakes are higher. An e-commerce store that fails to track cross-device journeys loses visibility over its most profitable channel.
Optimal e-commerce DataLayer configuration
Shopify, WooCommerce and PrestaShop: platform-specific approaches
The DataLayer is the structured data layer that feeds GA4 through Google Tag Manager. Without it, GA4 only receives basic page_view events. With it, every step of the buying journey is tracked precisely.
- Shopify — Use the native Shopify pixel combined with a custom DataLayer injected through theme.liquid. Plugins such as GTM4Shopify or Elevar simplify the implementation, but always confirm that the
currencyparameter (e.g.currency: 'USD'orcurrency: 'MAD') is set on every event. - WooCommerce — The free GTM4WP plugin generates a GA4-compliant DataLayer. Critical configuration: enable the "Enhanced E-commerce" option, set the correct default currency in WooCommerce settings, and make sure tax-inclusive prices are handled properly.
- PrestaShop — Fewer native options. We use the PrestaShop Google Tag Manager Pro module, which generates a GA4-compatible DataLayer. Note: the free version does not cover the refund and add_shipping_info events, both essential for full-funnel tracking.
Currency tracking
A point most configurations overlook: the currency code. GA4 uses the ISO 4217 standard (USD, EUR, MAD, GBP, and so on). If this parameter is not explicitly set on every e-commerce event, GA4 falls back to the account default (often USD), which skews every revenue and ROAS report.
Essential GA4 e-commerce events
| Event | Key parameters | Trigger | Business value |
|---|---|---|---|
view_item |
item_id, item_name, price, currency | Product page loaded | Identify the most-viewed products |
add_to_cart |
item_id, item_name, quantity, price, currency | "Add to cart" click | Measure real purchase intent |
begin_checkout |
items[], value, currency, coupon | Start of the checkout process | Catch early drop-offs |
add_shipping_info |
shipping_tier, items[], value, currency | Shipping method selected | Analyze the impact of shipping costs on conversion |
add_payment_info |
payment_type, items[], value, currency | Payment method selected | Compare conversion rates by payment method (card, cash on delivery, wallet) |
purchase |
transaction_id, value, tax, shipping, items[], currency | Order confirmation | Measure real revenue and compute ROAS |
refund |
transaction_id, value, items[], currency | Refund issued | Net ROAS after returns — critical for fashion verticals with 18-25% return rates |
The add_payment_info event is especially revealing in markets where cash on delivery still accounts for a large share of e-commerce transactions. In Morocco for instance, cash on delivery represents around 65% of orders but carries a 12-18% no-show rate. Tracking this parameter lets you bias your campaigns toward customers who prefer online payment, where the no-show rate is close to zero.
Cross-device attribution: the number-one issue in mobile-first markets
Smartphone penetration now exceeds 90% in many emerging markets, and more than 78% of e-commerce sessions start on mobile. But the buying journey rarely ends there. Our analysis across 45 e-commerce stores reveals a recurring pattern:
- Mobile discovery — The prospect sees a Meta or TikTok ad on their phone, clicks, browses the product.
- Desktop research — The same prospect, 24 to 72 hours later, searches the brand on Google from a computer at work or at home.
- Desktop or mobile purchase — The final conversion happens after 2 to 4 touchpoints.
Without cross-device attribution, this journey looks like two separate visitors. The discovery channel (Meta Ads, TikTok Ads) gets no credit for the conversion. As a result, you underinvest in discovery channels and overinvest in branded search.
To activate cross-device attribution in GA4, set Reporting Identity to "Blended" (Google Signals + User-ID + Device-ID + Modeling). If your store has user accounts, feed the GA4 User-ID for maximum accuracy.
5 must-have Looker Studio dashboards
GA4 captures the data, but Looker Studio turns it into decisions. Here are the 5 dashboards we roll out systematically for our e-commerce clients:
1. Campaign performance by source/medium
This dashboard blends GA4 data (sessions, transactions, revenue) with cost data imported from Google Ads and Meta Ads. The goal: show the true CPA and true ROAS per channel, not the self-reported metrics from each platform. The gap is typically 15 to 30%.
2. Conversion funnel with drop-off points
Full-funnel visualization: view_item → add_to_cart → begin_checkout → add_shipping_info → add_payment_info → purchase. Each step shows the pass-through rate and drop-off rate. Our data consistently shows the biggest drop-off at add_shipping_info, where shipping fees trigger 38% abandonment.
3. Customer cohorts and CLV (Customer Lifetime Value)
This dashboard segments customers by acquisition month and tracks their repeat-purchase behavior over 3, 6 and 12 months. Across our e-commerce clients, 12-month CLV averages 2.3x the value of the first purchase — a critical input when setting your target CPA.
4. Real vs reported ROAS reconciliation
Ad platforms (Google Ads, Meta Ads, TikTok Ads) systematically over-report conversions. This dashboard compares the revenue each platform claims with the actual revenue recorded in GA4 and your CRM. For our clients, the real ROAS is on average 22% below the ROAS reported by Meta Ads.
5. Most profitable products
This report blends revenue per product with gross margin (imported from your ERP or Google Sheets) and cost of acquisition. The goal: identify products that generate volume but no profit, and those that are actually profitable after ad spend. At one e-commerce client, we discovered that the 3 best-sellers drove 45% of revenue but only 12% of net margin after ad costs.
The default GA4 setup is a trap for e-commerce brands. It works — technically — but it hides the data that really matters: the cross-device journey, real ROAS and CLV by cohort. Investing 2 to 5 days in an advanced configuration with a complete DataLayer and dedicated Looker Studio dashboards delivers measurable ROI in the first month, typically a 20 to 30% CPA reduction.
We also recommend pairing this setup with server-side tracking via GTM to maximize data recovery in a context of tightening cookie restrictions.
To go further, read our guide on GTM Server-Side implementation, which perfectly complements advanced GA4 configuration by improving the quality of the data transmitted. Our certified technology partners guarantee an implementation that meets Google's standards.
Frequently asked questions
GA4 uses an event-driven model instead of sessions. Every e-commerce interaction (product view, add to cart, purchase) is an event with structured parameters. This enables more granular analysis of the buying journey and better cross-device attribution.
Include the currency parameter (e.g. currency: 'USD' or 'MAD') in every e-commerce DataLayer event (add_to_cart, begin_checkout, purchase). GA4 recognizes ISO 4217 codes and displays amounts correctly in reports.
Native GA4 reports cover the basics, but Looker Studio is essential to blend GA4 data with Google Ads, Meta Ads and your CRM. It is the only way to get a truly reconciled ROAS and CLV tracking by cohort.
For a standard e-commerce store (Shopify, WooCommerce or PrestaShop), plan 2 to 5 days for a full configuration including DataLayer, GTM, GA4 and the 5 Looker Studio dashboards. ROI is visible within the first month.
Is your GA4 properly configured?
Our data experts audit your GA4 configuration for free and identify the data you are losing. Results within 48 hours.
Request a free GA4 audit →