Set up web tracking for Loomi AI for Shopify
This guide walks you through setting up web tracking on your Shopify store to enable behavioral data collection and personalization features.
Overview
After setting up your Shopify integration inside Data hub, you need to set up web tracking on your Shopify theme. This enables Bloomreach to track customer behavior and power personalization features.
This guide covers the standard implementation using Bloomreach Web SDK for all Bloomreach users. For custom implementation methods, see Shopify Customization.
Prerequisites
Before you begin, ensure you have:
- Completed Data hub integration: You must complete how to integrate Loomi AI for Shopify before setting up web tracking.
- Shopify theme editor access: Access to edit your Shopify theme through Online Store > Themes > Edit theme.
- Marketing and Analytics consent: A "Marketing and Analytics" consent category configured in your cookie acceptance banner. For detailed prerequisites, see Shopify Web Pixel prerequisites.
Set up web tracking
Bloomreach Web SDK is part of the official Bloomreach: Loomi AI app in the Shopify App Store.
Important
A single store can only have one Bloomreach Web SDK pixel integration (1 project = 1 integration = 1 SDK).
Enable Bloomreach Web SDK
-
In your Shopify admin, go to Online Store > Themes > Edit Theme.
-
Click App Embeds in the left sidebar.
- In the App embeds panel, search for Bloomreach Web SDK in the search box.
- Find Bloomreach Web SDK and turn the toggle on.
Configure Bloomreach Web SDK (optional)
After enabling the Bloomreach Web SDK, you can configure additional settings:
Available configuration options:
- Track Real-time Segments: Enable real-time segment tracking for personalization
- Track Page Visits: Enable page visit event tracking
- Custom Configuration (JSON): Add custom configuration to extend or override default settings.
Example:
{
"track": {
"google_analytics": false
},
"cookies": {
"cross_subdomain": ".example.com",
"expires": {
"tracking": 15768000,
"ab_test": 2592000
}
},
"ping": {
"enabled": true,
"interval": 60
},
"webOptimization": {
"experiments": false,
"tagManager": true,
"webLayers": true
}
}
Discovery-specific options:
-
Discovery - test_data: Enable this to flag event data as test data, which won't affect your analytics. Use this in test environments to validate tracking without impacting production data. Turn this off on your live site.
-
Discovery - debug: Enable this to view individual events from your test environment in real time. Events appear in the Integration mode of Events diagnostics within seconds. When disabled, events appear in Live mode with up to 2 hours delay.
- After configuring your settings, click Save to save your changes.
Configure event tracking in Data hub
The Bloomreach Web SDK tracks the following customer behavior events. You can configure which specific event to track in your Data hub integration settings:
view_category: Category page viewsview_item: Product detail page viewssearch_submit: Search queries submittedcheckout: Checkout process eventsview_quickview: Quick view interactionsadd_to_cart: Add to cart actionsview_homepage: Homepage viewsview_search_results: Search results page viewsconversion: Purchase completion events
Important
When switching from Engagement SDK to Bloomreach Web SDK, the
searchevent is now split intosearch_submitandview_search_results. Update any dependencies onsearchevents to usesearch_submit.
Validate event tracking
To validate that your event tracking is working correctly:
For Discovery
- Install the Bloomreach Tracking Console for Google Chrome.
- Use the Events Management view to test Pixel Tracking with Debug Events.
For detailed validation steps and troubleshooting, see Pixel Validator documentation.
For Engagement
- Install the Bloomreach Tracking Console for Google Chrome.
- Or open a customer profile in your Engagement project to verify incoming web events.
Open a customer profile in your Engagement project to verify incoming web events.
Next steps
Your web tracking setup is complete. Your Shopify store now sends behavioral data to Bloomreach to power personalization features.
Additional resources
- Loomi AI for Shopify overview: Return to the feature overview.
- Loomi AI for Shopify FAQ: Common questions about the integration.
Updated 3 days ago
