Analytics & Conversion Tracking
5-Minute Setup
Section titled “5-Minute Setup”Step 1: Get Your Analytics IDs
Section titled “Step 1: Get Your Analytics IDs”Google Analytics 4: Go to analytics.google.com, create a property, and get your Measurement ID (format: G-XXXXXXXXXX).
Facebook Pixel (Optional): Go to Facebook Business Manager > Events Manager to get your Pixel ID.
Step 2: Configure Theme Settings
Section titled “Step 2: Configure Theme Settings”- Shopify Admin > Online Store > Themes > Customize
- Theme Settings > Analytics & Tracking
- Enter your GA4 Measurement ID
- Check Enable analytics tracking
- Check Enable Enhanced E-commerce tracking
- Check Require cookie consent (for GDPR)
- Save
Step 3: Test
Section titled “Step 3: Test”- Enable Debug mode in settings
- Open your store in incognito
- Accept cookies when prompted
- Check browser console for
[Analytics]messages - Visit a product page (should see “view_item” event)
- Add to cart (should see “add_to_cart” event)
Step 4: Verify in GA4
Section titled “Step 4: Verify in GA4”- Go to analytics.google.com
- Reports > Realtime — See your test session
- Reports > Engagement > Events — See tracked events
Step 5: Go Live
Section titled “Step 5: Go Live”Uncheck Debug mode in Theme Settings and save.
Automatic Events
Section titled “Automatic Events”| Event | When It Fires |
|---|---|
view_item | Product page viewed |
add_to_cart | Product added to cart |
remove_from_cart | Product removed |
view_cart | Cart page viewed |
begin_checkout | Checkout started |
filter_applied | Collection filter used |
sort_changed | Collection sort changed |
product_clicked | Product card clicked |
search_performed | Search submitted |
image_zoom | Product image zoomed |
wishlist_add | Item added to wishlist |
Data Tracked
Section titled “Data Tracked”- Product details (ID, name, price, category)
- Customer type (new/returning/guest)
- Device type (mobile/tablet/desktop)
- Traffic source (UTM parameters)
- Performance metrics (Core Web Vitals)
Key Metrics to Watch
Section titled “Key Metrics to Watch”| Metric | Formula | Target |
|---|---|---|
| Conversion Rate | Purchases / Product Views | 2-5% |
| Add-to-Cart Rate | Add to Cart / Product Views | 5-15% |
| Cart Abandonment | 1 - (Checkouts / Carts Viewed) | < 70% |
GA4 Dashboard
Section titled “GA4 Dashboard”- Realtime: Reports > Realtime
- E-commerce: Reports > Monetization > E-commerce purchases
- All Events: Reports > Engagement > Events
- Conversion Funnel: Explore > Create Funnel (view_item > add_to_cart > begin_checkout > purchase)
Privacy & Compliance
Section titled “Privacy & Compliance”Avenue Luxe analytics is GDPR/CCPA ready:
- No tracking before cookie consent
- Respects opt-out choices
- Privacy-first design
Required actions:
- Update your Privacy Policy to mention analytics
- Update your Cookie Policy to list analytics cookies
- Ensure Cookie Consent Banner works properly
- Test the consent flow thoroughly
Troubleshooting
Section titled “Troubleshooting”Not seeing events: Check GA4 ID is correct, analytics tracking is enabled, cookie consent was accepted, wait 24 hours for initial processing.
Events fire multiple times: Disable ad-blocker browser extensions, clear cache, test in incognito mode.
Facebook Pixel not working: Verify Pixel ID is numeric only, tracking is enabled, cookie consent was accepted.