Available Integrations
Revenue Platforms
Shopify Sync orders, track revenue, and calculate profit with automatic order attribution.- Order sync with customer attribution
- Profit tracking with COGS (cost of goods sold)
- Automatic conversion events
- Customer journey linking
- Payment sync with customer matching
- Subscription tracking
- Automatic conversion events
- Email-based attribution linking
Ad Networks
Meta Ads (Facebook/Instagram) Send conversions back to Meta with CAPI (Conversions API) for improved attribution and ad optimization.- Server-side conversion tracking
- Browser-based click ID (fbclid) attribution
- Enhanced matching with customer data
- Real-time conversion postbacks
- Conversion tracking via Google Ads API
- Click ID (gclid) attribution
- Enhanced conversions with customer data
- Offline conversion import
- Server-side event tracking
- Click ID (ttclid) attribution
- Enhanced matching
- Real-time conversion sync
How Integrations Work
Revenue Attribution Flow
1. User Clicks AdIntegration Benefits
Accurate Revenue Attribution
Connect server-side revenue data (Shopify, Stripe) with client-side tracking (Meta Pixel, Google Tag) for complete attribution:- No lost conversions from iOS 14+ tracking restrictions
- Cross-device attribution via email matching
- Server-side conversion tracking bypasses browser limitations
Automatic Profit Tracking
DATALYR calculates profit by syncing product costs:- Shopify COGS (cost of goods sold) automatically synced
- Real-time profit per order
- ROAS and profit margin metrics in dashboard
Ad Platform Optimization
Send conversions back to ad platforms for better campaign performance:- Meta, Google, and TikTok receive server-side conversions
- Enhanced matching with customer data (email, phone, address)
- Real-time conversion events improve ad delivery
Customer Journey Completion
Link anonymous visitors to identified customers across platforms:- Email matching links Stripe/Shopify customers to website visitors
- Complete journey from ad click to purchase
- Cross-device attribution via user identification
Setup Overview
1. Connect Integration
Navigate to Settings → Integrations and click “Connect” for your platform. For Revenue Platforms (Shopify, Stripe):- Authorize DATALYR to access your account
- Grant read permissions for orders/payments
- Grant read permissions for customer data
- Connect your ad account
- Authorize DATALYR to send conversions
- Select pixel/tag for conversion tracking
2. Configure Sync Settings
Revenue Platforms:- Select which events to sync (orders, refunds, subscriptions)
- Configure attribution matching (email, customer ID)
- Set sync frequency (real-time webhooks or scheduled)
- Map conversion events (purchase, signup, lead)
- Configure conversion values
- Set up enhanced matching (email, phone hashing)
3. Verify Integration
Test Order/Payment: Create a test order or payment to verify sync:- Check Event Stream for synced event
- Verify customer attribution is correct
- Confirm conversion sent to ad platform
- Revenue appears in dashboard
- Orders attributed to correct source
- Conversions show in ad platform
Integration Architecture
Webhooks
Real-time event processing for instant attribution: Shopify:- Order created/updated webhooks
- Customer created webhooks
- Refund webhooks
- Payment intent succeeded
- Subscription created/updated
- Invoice paid
API Sync
Scheduled syncs for historical data and missing events: Sync Frequency:- Shopify: Every 15 minutes
- Stripe: Every 15 minutes
- Meta Ads: Every 15 minutes
- Google Ads: Every 15 minutes
- TikTok Ads: Every 15 minutes
Conversion Postbacks
Server-to-server conversion tracking: Meta CAPI:- Real-time conversion postbacks
- Enhanced matching with customer data
- Deduplication with browser pixel
- Offline conversion import
- Enhanced conversions
- Click ID attribution
- Server-side event tracking
- Enhanced matching
- Deduplication with pixel
Attribution Matching
Email Matching
Most common method for linking platform customers to website visitors: How It Works:Customer ID Matching
For platforms with customer accounts: Shopify:- Shopify customer_id linked to datalyr user_id
- Orders automatically attributed to customer journey
- Stripe customer_id linked to datalyr user_id
- Subscriptions attributed to original signup source
Anonymous Visitor Matching
When no email/customer ID is available: Fallback Methods:- Browser fingerprint matching
- Session ID matching (same browser session)
- IP address + user agent matching (last resort)
Data Synced
Shopify
Orders:- Order ID, order number, created date
- Total price, currency, line items
- Customer email, customer ID
- Discount codes, shipping info
- Financial status, fulfillment status
- Product title, SKU, vendor, type
- Cost per item (COGS)
- Price, compare at price
- Email, name, phone
- Total orders, total spent
- Created date, last order date
Stripe
Payments:- Payment intent ID, amount, currency
- Customer email, customer ID
- Payment method, status
- Created date
- Subscription ID, plan, price
- Customer email, customer ID
- Start date, status, interval
- Email, name, phone
- Stripe customer ID
- Created date
Ad Networks
Meta Ads:- Campaign, ad set, ad stats
- Spend, impressions, clicks, CPM, CPC
- Conversions (from Meta reporting)
- Campaign, ad group stats
- Spend, impressions, clicks, conversions
- Cost per conversion
- Campaign, ad group, ad stats
- Spend, impressions, clicks
- Conversions (from TikTok reporting)
Privacy and Compliance
Data Hashing
Customer data is hashed before sending to ad platforms:- SHA-256 hashing for emails and phone numbers
- Compliant with Meta CAPI, Google Enhanced Conversions
- No plaintext PII sent to ad networks
GDPR Compliance
Users can opt out of tracking:- Opt-out respected across all integrations
- No data synced for opted-out users
- User data deletion on request
Data Retention
Integration data is stored according to platform requirements:- Orders/payments: Retained indefinitely for reporting
- Customer data: Retained for attribution matching
- Ad stats: Retained for 13 months (platform standard)
Troubleshooting
Orders Not Appearing? Check:- Integration is connected and active
- Webhooks are configured (for Shopify)
- API credentials are valid (for Stripe)
- Check Event Stream for synced events
- Customer email matches visitor email
- Order within attribution window (default 30 days)
- Click ID present in visitor profile
- User identified via identify() call
- Ad account connected and authorized
- Conversion event mapped correctly
- Click ID present in order attribution
- Check integration logs for errors
Next Steps
Shopify Integration
Set up Shopify order sync and profit tracking
Stripe Integration
Connect Stripe for payment attribution
Meta Ads Integration
Send conversions to Facebook and Instagram
Conversion Rules
Configure custom conversion rules