Key Differences from Standard SDK
- Context Bridge: The Shopify Web Pixel SDK requires access to Shopify’s
analytics,browser, andinitobjects from the pixel sandbox - Event Handling: Uses Shopify’s
analytics.subscribe()API to capture rich e-commerce data - Automatic Events: Captures Shopify-specific events without additional configuration
Setup Instructions
1. Create a Shopify Custom Pixel
In your Shopify Admin:- Go to Settings → Customer events → Custom pixels
- Click Add custom pixel
- Name it “Edgee Analytics”
2. Add the Pixel Code
Copy this code into your custom pixel:YOUR-DOMAIN.com with your actual domain where the Edgee SDK is hosted.
Automatic Event Tracking
The SDK automatically tracks these Shopify events:Page Events
page_viewed- Triggered on every page view
Product Events
product_viewed- When a user views a productproduct_added_to_cart- When a product is added to cartproduct_removed_from_cart- When a product is removed from cartcollection_viewed- When a user views a collection
Checkout Events
checkout_started- When checkout beginscheckout_completed- When a purchase is completedcheckout_address_info_submitted- Address information submittedcheckout_contact_info_submitted- Contact information submittedcheckout_shipping_info_submitted- Shipping method selectedpayment_info_submitted- Payment information submitted
Search Events
search_submitted- When a user performs a search