E-Commerce Development Analytics 4 — Questions and Answers
Question 1: What is a 'data layer' in the context of tag management for e-commerce?
- A JavaScript object that stores structured data for tag management systems to consume (Correct answer)
- A database layer that stores analytics events server-side
- A CDN caching layer that speeds up analytics scripts
- An API endpoint that receives event data from the browser
Correct answer: A JavaScript object that stores structured data for tag management systems to consume
The data layer is a JavaScript object (typically window.dataLayer) that acts as a communication bridge between the website and tag management systems like GTM.
Question 2: Which GA4 feature allows you to define custom events and parameters without code changes?
- GA4 Event Modification and Custom Event creation in the Admin UI (Correct answer)
- Google Tag Manager preview mode
- Measurement Protocol
- BigQuery Export
Correct answer: GA4 Event Modification and Custom Event creation in the Admin UI
GA4's Admin UI lets you create new events from existing ones and modify parameters without deploying new code, using the Events configuration section.
Question 3: A store wants to track revenue by traffic source accurately. Which GA4 feature enables this?
- UTM parameters combined with the Session source/medium dimension (Correct answer)
- Custom dimensions set at the user scope
- Real-Time reports in the Reporting tab
- BigQuery linked dataset queries
Correct answer: UTM parameters combined with the Session source/medium dimension
UTM parameters appended to campaign URLs populate GA4's session source/medium dimension, allowing revenue to be segmented by acquisition channel.
Question 4: In Mixpanel, what is a 'funnel' report used for in e-commerce?
- Measuring conversion rates between sequential steps like view product → add to cart → purchase (Correct answer)
- Tracking server-side API call latency
- Visualizing the geographic distribution of users
- Comparing revenue across product categories
Correct answer: Measuring conversion rates between sequential steps like view product → add to cart → purchase
A Mixpanel funnel report shows the percentage of users who complete each step in a defined sequence, identifying where the most dropoff occurs.
Question 5: What is the purpose of the `transaction_id` parameter in a GA4 purchase event?
- To deduplicate purchase events so the same order is not counted twice (Correct answer)
- To link the event to a specific product SKU
- To identify which payment gateway was used
- To set the currency for the transaction
Correct answer: To deduplicate purchase events so the same order is not counted twice
GA4 uses transaction_id to deduplicate purchases; if the same ID is sent twice, GA4 will only count the transaction once.
Question 6: Which metric measures the percentage of sessions that result in a purchase?
- E-commerce conversion rate (Correct answer)
- Revenue per session
- Average order value
- Return on ad spend
Correct answer: E-commerce conversion rate
E-commerce conversion rate is calculated as (transactions / sessions) × 100, indicating what share of visits lead to a sale.
Question 7: What is 'server-side tagging' and what privacy advantage does it offer?
- Running tag logic on a server you control, reducing data sent to third parties from the browser (Correct answer)
- Storing analytics data only on your own servers without sending to Google
- Blocking all cookies by processing events after the session ends
- Encrypting user data before it reaches the analytics platform
Correct answer: Running tag logic on a server you control, reducing data sent to third parties from the browser
Server-side tagging moves tag execution from the user's browser to a server container, giving you control over what data is forwarded to vendors and reducing client-side third-party scripts.
What is a 'data layer' in the context of tag management for e-commerce?