E-commerce

E-commerce SDR Template for Adobe Analytics

A complete Solution Design Reference for e-commerce implementations. This template covers product views, cart actions, checkout steps, and revenue tracking with recommended eVar, prop, and event mapping ready to use in your next project.

What is a Solution Design Reference?

A Solution Design Reference (SDR) is the foundational document for any Adobe Analytics implementation. It maps every business requirement to a specific variable, defining what data gets collected, where it is stored, and how it should be formatted.

Without an SDR, implementations drift over time. Variables get reused for conflicting purposes, naming conventions break down, and data quality degrades. This template provides a pre-built starting point for e-commerce sites so your team can focus on customization rather than building from scratch.

Who This Template is For

Analytics teams implementing Adobe Analytics on e-commerce platforms including Shopify, Magento, WooCommerce, Salesforce Commerce Cloud, and custom-built storefronts. The variable mapping is platform-agnostic and works with both AppMeasurement and WebSDK.

E-commerce Event Tracking

The core of any e-commerce SDR is the event framework. These custom events track the key actions in your purchase funnel and feed into conversion reporting, calculated metrics, and attribution models.

EventVariableDescriptionTrigger
Product Viewevent1Product detail page loadedPDP page load
Add to Cartevent2Item added to shopping cartAdd to cart click
Checkout Startevent3User initiates checkout flowCheckout page load
Purchaseevent4Order confirmation completedThank you page load
Remove from Cartevent5Item removed from cartRemove button click
Cart Viewevent6Cart page viewedCart page load

Use the products string variable alongside these events for product-level detail. Format: Category;Product;Quantity;Price;Events;Merchandising eVars.

Product Variables

Product dimensions allow you to break down performance by product attributes. These eVars and props capture the metadata that powers product performance reports and merchandising analysis.

DimensionVariableTypeExpirationExample Value
Product NameeVar1Merchandising (Product)PurchaseClassic Leather Jacket
Product CategoryeVar2Merchandising (Product)PurchaseMen > Outerwear > Jackets
Product ID / SKUprop1TrafficHitSKU-12345
BrandeVar3Merchandising (Product)PurchaseAcme Fashion
Product Price RangeeVar4Merchandising (Product)Purchase$100-$199
Product Ratingprop2TrafficHit4.5 stars

Merchandising eVars

Use product-binding merchandising eVars (not conversion syntax) for attributes that are specific to a product in a multi-product cart. This ensures that when a user purchases multiple items, each product retains its own attribute values in reporting.

Cart and Checkout Tracking

Tracking the checkout funnel with granularity lets you identify drop-off points and optimize each step. These variables capture cart value, checkout progression, and payment details.

DimensionVariableDescriptionExample Value
Cart ValueeVar10Total cart value at time of action$247.50
Checkout StepeVar11Current step in checkout flowShipping | Payment | Review
Payment MethodeVar12Selected payment typeCredit Card | PayPal | Apple Pay
Shipping MethodeVar13Selected shipping optionStandard | Express | Next Day
Coupon CodeeVar14Applied discount codeSAVE20
Cart Item Countprop10Number of items in cart3

Checkout Funnel Events

  • event10: Shipping step completed. Fires when user moves past the shipping address form.
  • event11: Payment step completed. Fires when payment information is submitted.
  • event12: Order review step viewed. Fires on the final review page before purchase confirmation.

Campaign Attribution

Attribution mapping ensures every marketing touchpoint is captured and credited appropriately. These variables work together with Adobe Analytics Marketing Channels and processing rules.

DimensionVariableSourceExample Value
External Campaign IDeVar20URL parameter cidgoogle_brand_spring2026
Internal CampaigneVar21On-site banner / promo clickhomepage_hero_spring_sale
Marketing ChanneleVar22Processing rulesPaid Search | Email | Social
Search KeywordeVar23URL parameter or search integrationleather jacket mens
Internal Search TermeVar24Site search inputblue sneakers

Attribution Model Recommendation

Set external campaign eVars to Original Value (First) allocation with 30-day expiration for first-touch attribution. Create a duplicate eVar with Most Recent (Last) allocation for last-touch comparison. This dual approach gives you both perspectives without needing Attribution IQ for basic reporting.

Implementation Notes

A well-structured data layer is essential for reliable variable population. Here are the key requirements and Adobe Launch rule patterns for this SDR.

Data Layer Requirements

Your data layer should expose a consistent object on every page. For e-commerce, the recommended structure follows the W3C Customer Experience Digital Data Layer specification with extensions for product arrays.

Minimum Data Layer Object

Ensure your data layer includes: page.pageInfo for page metadata, product[] array for product details, cart object for cart state, transaction object on purchase confirmation, and user.profile for authentication state.

Launch Rule Patterns

  • Page Load Rule: Fires on every page. Sets page-level variables (pageName, channel, site section) and checks for product or cart data in the data layer.
  • Product View Rule: Triggered by data layer event when PDP loads. Populates product string and fires event1.
  • Add to Cart Rule: Listens for add-to-cart data layer push. Populates product string with the added item and fires event2.
  • Purchase Rule: Fires on order confirmation page. Populates full product string, order ID, and revenue. Fires event4.

Next Steps

  1. Customize variables: Adjust eVar/prop numbers to avoid conflicts with your existing implementation.
  2. Map to your data layer: Document which data layer key populates each variable.
  3. Configure Report Suite: Enable merchandising eVars, set expiration values, and create calculated metrics for conversion rates.
  4. Validate in debugger: Use Adobe Experience Platform Debugger to verify each variable fires correctly on every interaction.
// HIRE US

Need help with your e-commerce SDR?

Our team builds and implements Solution Design References for e-commerce platforms of all sizes. Let us help you get your analytics foundation right.

"We've helped dozens of teams to structure their data. Let's see how we can help you."

Kamil Glowacki
Kamil Glowacki
CEO & Founder, DataCoreUnity

By submitting this form, you agree to our Privacy Policy.