Disconnected data
GA4 tracks events. Business Manager holds catalog data. Neither talks to the other. Merchants switch between dashboards to answer basic questions.
Track every shopper interaction. Query your data in plain English. Personalize your storefront with AI. Built for Salesforce B2C Commerce.
Three gaps every B2C Commerce merchant hits when they try to make GA4 and their storefront work together.
GA4 tracks events. Business Manager holds catalog data. Neither talks to the other. Merchants switch between dashboards to answer basic questions.
Every shopper sees the same homepage. No personalization at the content layer. Promotions are manual, not data-driven.
Setting up GA4 on Storefront Next requires developer involvement for every change. Environment variables, code deployments, technical overhead.
Start with self-service tracking. Upgrade to the Intelligence Platform when you're ready for AI analytics and personalization — your tracking carries straight over.
Self-service GA4 integration. Install the Commerce App, configure in Business Manager, start tracking.
Everything in Basic plus AI-powered analytics, personalization, and Contentful integration.
Both tiers are self-service to install · GA4 tracking included at every level
From install to insights in minutes.
A few things need to be in place before Commerce Ace GA4 Analytics can track. Skim both lists — the second one saves support tickets later.
Install the Commerce Ace GA4 Analytics app using the Salesforce B2C CLI. The app package includes the storefront extension components, admin configuration, custom site preference definitions, and a setup task checklist.
b2c cap install commerce-ace-ga4-v1.0.0.zip -i {instance} --server {server} --site-id {siteId} --client-id {clientId} --client-secret {secret} --clean-archive
After installation, the app appears under Merchant Tools → Ordering → Commerce Apps → Analytics → Additional Setup.
Navigate to Merchant Tools → Site Preferences → Custom Preferences. Find the Commerce Ace GA4 Analytics group. Three fields are available:
G-XXXXXXXXXX. Find it in GA4 Admin → Data Streams → select your Web stream → Measurement ID.debug_mode flag. Use with GA4 DebugView to verify events fire correctly. Turn off for production.
The Commerce App package includes extension components that need to be added to your Storefront Next storefront. Copy the extension folder from the app package into your storefront's src/extensions/ directory. The extension registers four components via target-config.json:
page_view events on every route change.view_item on product detail pages using the storefront's product context.begin_checkout on the checkout page using the storefront's basket context.purchase on the order confirmation page, fetching order details via SCAPI.After adding the extension, deploy the storefront to Managed Runtime.
src/extensions/**/target-config.json. No manual registration required.
Enable Debug Mode in Business Manager Custom Preferences (step 02). Open Google Analytics → Admin → DebugView. Browse your storefront in a separate tab. Confirm these events appear:
Each event includes standard GA4 parameters: currency, value, and item details (ID, name, price, quantity).
Sign up at ai.commerceace.com for the Pro tier. The Intelligence Platform adds AI-powered analytics and personalization on top of the Basic GA4 tracking. Connect your GA4 property:
Once connected, you can:
Every setting lives under Site Preferences → Custom Preferences → Commerce Ace GA4 Analytics. Sensible defaults ship at install.
| Setting | What it does | Recommendation |
|---|---|---|
| GA4 Measurement ID | The G-XXXXXXXXXX identifier for your GA4 Web data stream. Events are sent to this property. |
Required. Find in GA4 Admin → Data Streams → Web. |
| Enable Commerce Ace GA4 Tracking | Master on/off switch for all event tracking on the storefront. | Set to Yes when ready to go live. |
| GA4 Debug Mode | Sends events with the debug_mode flag so they appear in GA4 DebugView for real-time verification. |
Yes during setup and QA. No for production. |
| Intelligence Platform Measurement ID | On the Pro tier, the Measurement ID can be managed from ai.commerceace.com. The Intelligence Platform value takes priority when set. | Use to manage tracking from the Intelligence Platform dashboard instead of BM. |
| Intelligence Platform Tracking Toggle | On/off switch in the Intelligence Platform sidebar. Controls tracking without BM access or redeployment. | Available on Pro tier only. |
What we tell every Commerce Ace merchant on their onboarding call.
Start with Debug Mode
Enable Debug Mode first, verify all four events in DebugView before turning it off for production.
Check your data stream
Make sure your GA4 property has a Web data stream configured with the correct domain. Mismatched domains mean events show up but aren't attributed properly.
Wait 48 hours for reports
GA4 processes data with a 24–48 hour delay. DebugView is real-time, but standard reports (Engagement, Monetization) take time to populate.
Use the Analytics Agent for quick answers
Instead of building custom reports in GA4, ask the Intelligence Platform: "top 5 products by revenue last week." Faster and easier.
Don't run duplicate tracking
If you already have gtag.js from another integration, remove it before enabling Commerce Ace GA4 Tracking. Duplicate tags send duplicate events.
Test across key pages
After setup, visit a PDP, start a checkout, and complete a test order to confirm all four event types fire correctly.
Four e-commerce events: page_view (every navigation), view_item (product detail pages), begin_checkout (checkout page), and purchase (order confirmation). All events include currency, value, and item-level details.
Storefront Next only. The app uses the Storefront Next extension system (UI targets, React components, useConfig). It is not compatible with SFRA or SiteGenesis.
For the Basic tier, no. Once the extension components are integrated and deployed, the merchant configures everything in Business Manager. For the Pro tier, the Intelligence Platform dashboard is fully self-service.
The storefront calls the Intelligence Platform API on every page load. The API returns the current tracking configuration (measurement ID and enabled/disabled). The storefront loads or skips gtag.js based on that response.
Yes. The app sends events to whatever Measurement ID you configure. It does not create a new property.
The Measurement ID (G-XXXXXXXXXX) identifies the data stream and is used by gtag.js to send events. The Property ID (numeric, like 538044450) identifies the GA4 property and is used by the Analytics Agent to query the GA4 Data API. Both come from the same GA4 property.
The Intelligence Platform uses Google OAuth with read-only GA4 scope (analytics.readonly). It cannot modify your GA4 configuration or access other Google services. Tokens are stored encrypted and refresh automatically.
Each site needs its own Commerce App installation and Measurement ID configuration. The Intelligence Platform supports multiple storefronts per account on the Pro tier.
Storefront Next on Managed Runtime. Contentful for content. Intelligence Platform for AI. Business Manager for commerce. GA4 for analytics. All connected.
Install GA4 tracking today, then upgrade to the Intelligence Platform whenever you're ready for AI analytics and personalization.