Analytics quickstarts
Analytics is the foundation of Luigi’s Box learning. Before moving into Search, Autocomplete, Recommendations, or Product Listing, make sure your event tracking and object identity strategy are solid.
Choose your path
Section titled “Choose your path”DataLayer Collector
Use the JavaScript collector when your storefront already has a `dataLayer` or GA4-style ecommerce events.
- Fastest path for websites.
- Works naturally with existing ecommerce events.
- Pairs well with Luigi's Box frontend libraries.
Events API
Send analytics events directly from your backend or mobile app when you need full control over event delivery.
- No browser collector required.
- Fits mobile and server-side architectures.
- Gives you explicit control over payloads.
Quickstart collection
Section titled “Quickstart collection”Foundation
Start here
Establish the identity model that all analytics and catalog data will share.
DataLayer Collector
Frontend tracking path
Use these guides when the browser is responsible for reporting ecommerce events.
Events API
Backend and mobile path
Use these guides when you need to send analytics directly to Luigi's Box.
Verification
Debug your setup
Check that events are flowing correctly before you move deeper into product integrations.
Was this page helpful?
Thanks.