Use Cases
E-commerce Attribution Track every purchase back to the Meta, Google, or TikTok ad that drove it. See true ROAS with server-side conversion tracking. Product Performance See which products sell best from which ad campaigns. Optimize ad spend based on product-level attribution. Customer Journeys Track the full path from first ad click to purchase, even across multiple devices and sessions. Abandoned Cart Recovery Track cart additions and identify where customers drop off. Connect to ad platforms for retargeting.Before You Start
- You have a DATALYR account
- You’ve created a workspace
- You have a Shopify store (any plan)
- You have admin access to your Shopify store
Installation Steps
Step 1: Install from Shopify App Store
- Go to the DATALYR app in the Shopify App Store
- Click Add app
- Review the permissions and click Install app
- You’ll be redirected to DATALYR to connect your store
Step 2: Connect Your DATALYR Workspace
- Log in to your DATALYR account (or create one)
- Select the workspace you want to connect
- Click Connect Shopify Store
- Authorize the connection
Step 3: Verify Installation
- Visit your Shopify storefront in a new browser tab
- Browse a few products
- Go to your DATALYR dashboard
- Click Events in the sidebar
- You should see
page_viewandview_itemevents within seconds
What Gets Tracked Automatically
The Shopify app automatically tracks: Pageviews- Homepage visits
- Product page views
- Collection page views
- All other pages
- Product views with product details
- Add to cart with product and price
- Begin checkout (checkout initiated)
- Purchase with full order details (order ID, revenue, items, customer info)
- UTM parameters from ad campaigns
- Ad click IDs (fbclid, gclid, ttclid)
- Referrer and traffic source
- First touch, last touch, and current touch
- Cross-device visitor linking
- Customer ID (when logged in)
- Email (on purchase)
- Order history
- Customer lifetime value
How Shopify Tracking Works
DATALYR uses Shopify’s Web Pixels API for accurate, privacy-compliant tracking: Web Pixel Tracks customer behavior on your storefront (pageviews, product views, cart events). Order Sync Automatically syncs order data from Shopify via webhooks. No code required. Server-Side Events Sends conversion events to Meta CAPI, Google Enhanced Conversions, and TikTok Events API with enriched data.App Permissions
DATALYR requires these Shopify permissions:- Read orders: To track purchases and revenue
- Read products: To include product details in events
- Read customers: To link orders to customer profiles
- Web pixels: To track customer behavior on your storefront
Configure Server-Side Conversions
To send conversion events to ad platforms:- In DATALYR, go to Integrations
- Connect Meta Ads, Google Ads, or TikTok Ads
- DATALYR will automatically send purchase events with enriched data
- Your ad platforms receive server-side conversions for better optimization
Shopify Plus Features
If you have Shopify Plus, DATALYR supports:- Checkout Extensibility: Track checkout steps in new checkout
- Multistore: Install on multiple stores under one workspace
- Wholesale: Track B2B orders separately
Troubleshooting
Not seeing events? Check that:- The app is installed and connected in your Shopify admin
- You’re viewing your live storefront (not preview/development)
- Your workspace is connected in DATALYR
- Ad blockers are disabled
- Check that the app has “Read orders” permission
- Wait up to 5 minutes for the first sync
- Place a test order to verify
Uninstall Manual Installation (If Applicable)
If you previously installed DATALYR manually in your theme:- Go to Online Store → Themes
- Click Actions → Edit code
- Find and remove the DATALYR script from
theme.liquid - Save changes
App vs Manual Installation
Use the App if:- You want automatic order tracking
- You don’t want to edit theme code
- You want one-click installation
- You want automatic updates
- You need full control over event tracking
- You want to customize which events are tracked
- You have a highly customized theme
Next Steps
Connect Ad Accounts
Link Meta, Google, or TikTok Ads
View Your Dashboard
See your Shopify tracking data
Server-Side Conversions
Set up Meta CAPI
Verify Tracking
Confirm events are tracking