E-Commerce Development Analytics 3 — Questions and Answers
Question 1: What is the difference between 'users' and 'sessions' in Google Analytics 4?
- Users are unique individuals identified by device/cookie; sessions are groups of interactions within a time period (Correct answer)
- Users are logged-in accounts; sessions count every page view
- Users measure mobile traffic; sessions measure desktop traffic
- Users are bots filtered out; sessions include all traffic
Correct answer: Users are unique individuals identified by device/cookie; sessions are groups of interactions within a time period
A user represents a unique visitor identified by a client ID or user ID, while a session is a collection of interactions that happen within a given timeframe for that user.
Question 2: Which e-commerce KPI best measures the effectiveness of product page content?
- Product detail view-to-add-to-cart rate (Correct answer)
- Overall site bounce rate
- Average session duration
- New vs. returning visitor ratio
Correct answer: Product detail view-to-add-to-cart rate
The view-to-add-to-cart rate directly measures how persuasively a product page motivates shoppers to take the next step.
Question 3: In Segment (the CDP), what is a 'trait' used for?
- Storing persistent attributes about a user such as email or plan tier (Correct answer)
- Defining A/B test variants
- Filtering web traffic by source
- Creating product recommendation rules
Correct answer: Storing persistent attributes about a user such as email or plan tier
Traits in Segment are key-value properties stored on a user profile, like name, email, or subscription level, persisted across events.
Question 4: What is 'customer lifetime value' (CLV) and why is it important for e-commerce analytics?
- The total revenue expected from a customer over their relationship with the store, used to guide acquisition spend (Correct answer)
- The average revenue per transaction used to set pricing
- The number of orders a customer places in a single month
- The discount a store offers loyal customers
Correct answer: The total revenue expected from a customer over their relationship with the store, used to guide acquisition spend
CLV projects total future revenue from a customer, helping businesses determine how much they can profitably spend to acquire and retain each customer.
Question 5: A developer notices GA4 is recording duplicate 'purchase' events. What is the most likely cause?
- The purchase event fires on both client-side code and a GTM tag without deduplication (Correct answer)
- GA4 automatically counts refunds as purchases
- The measurement ID is shared across multiple properties
- Server-side tagging is disabled
Correct answer: The purchase event fires on both client-side code and a GTM tag without deduplication
Duplicate purchase events commonly occur when both inline JavaScript and a GTM tag fire the same event without a flag or deduplication key to prevent double-counting.
Question 6: What does 'scroll depth tracking' provide insight into for an e-commerce product page?
- How far down the page users read, indicating which content they engage with before deciding to buy (Correct answer)
- How fast the page scrolls on mobile devices
- The number of images loaded below the fold
- Whether users are using keyboard navigation
Correct answer: How far down the page users read, indicating which content they engage with before deciding to buy
Scroll depth tracking reveals what percentage of the page visitors actually see, showing whether key content like reviews or CTAs are being reached.
Question 7: Which HTTP response header must be set correctly to ensure cross-site analytics cookies function in a third-party context?
- Set-Cookie with SameSite=None; Secure (Correct answer)
- Access-Control-Allow-Origin: *
- Cache-Control: no-store
- X-Frame-Options: SAMEORIGIN
Correct answer: Set-Cookie with SameSite=None; Secure
Cookies used in cross-site contexts require SameSite=None and the Secure flag; without these, browsers block the cookie in third-party frames and requests.
What is the difference between 'users' and 'sessions' in Google Analytics 4?