# eCommerce Integrations

> Connect your online store to AnyTrack for automatic conversion tracking. Track purchases, sync data to ad platforms, and optimize eCommerce campaigns with accurate attribution.

Connect your eCommerce platform to AnyTrack to automatically track purchases, attribute sales to campaigns, and send [conversion data](/docs/event-attributes) to your ad platforms for optimization.

## What are eCommerce Integrations?

AnyTrack's eCommerce integrations connect your online store directly to AnyTrack, enabling automatic conversion tracking without manual event setup or complex code.

**What eCommerce Integrations Do:**
- **Track purchases automatically** - Capture order data, `revenue`, products, and [customer information](/docs/event-attributes#customer-traits-supported-by-AnyTrack)
- **Attribute sales to campaigns** - Match conversions to the ad campaign, keyword, and creative using [UTM parameters](/docs/utm-parameters)
- **Send data to ad platforms** - Sync [conversion events](/docs/standard-events) to [Facebook Ads](/docs/facebook-ads), [Google Ads](/docs/google-ads), [TikTok Ads](/docs/tiktok-ads) via [server-side APIs](/docs/server-side-tracking)
- **Build audiences** - Create remarketing audiences based on purchase behavior
- **Provide accurate reporting** - See which campaigns drive sales in [Campaign Reports](/docs/campaign-report)

**Perfect for:**
- eCommerce stores running paid advertising
- Dropshipping businesses tracking sales from multiple traffic sources
- Digital product sellers tracking course or software sales
- Subscription businesses tracking recurring `revenue`

> 📘 **How**
>
> Customer clicks your ad → AnyTrack captures campaign data → Customer completes purchase → Your store sends order data to AnyTrack → AnyTrack attributes the sale to the correct campaign → Sends conversion to your ad platforms for optimization.

***

## Supported eCommerce Platforms

Choose your eCommerce platform to see the integration method:

### Native Integrations (Recommended)

Full automation with one-click setup:

| Platform | Integration Type | Setup Time | Guide |
|----------|-----------------|------------|-------|
| **Shopify** | App Installation | 5 minutes | [Shopify Integration](/docs/shopify) |
| **WooCommerce** | WordPress Plugin | 10 minutes | [WooCommerce Integration](/docs/woocommerce) |

**Why use native integrations:**
- ✅ Automatic [event tracking](/docs/standard-events) (AddToCart, InitiateCheckout, Purchase)
- ✅ Product catalog sync with name, SKU, price, image
- ✅ [Customer data collection](/docs/event-attributes#customer-traits-supported-by-AnyTrack) (email, name, phone for match rate)
- ✅ [Server-side conversion tracking](/docs/server-side-tracking) (Conversion API)
- ✅ No code required

### Webhook-Based Integrations

Requires webhook configuration:

| Platform | Integration Type | Setup Time | Guide |
|----------|-----------------|------------|-------|
| **ThriveCart** | Webhook + Tag | 15 minutes | [ThriveCart Integration](/docs/thrivecart) |
| **SamCart** | Webhook + Tag | 15 minutes | [SamCart Integration](/docs/samcart) |
| **Memberful** | Webhook + Tag | 15 minutes | [Memberful Integration](/docs/memberful) |
| **Funnelish** | Webhook + Tag | 15 minutes | [Funnelish Integration](/docs/funnelish) |
| **CopeCart** | Webhook + Tag | 15 minutes | [CopeCart Integration](/docs/copecart) |

**Webhook integrations provide:**
- ✅ [Server-side purchase tracking](/docs/server-side-tracking)
- ✅ Order value and [product data](/docs/event-attributes#product-attributes)
- ✅ Real-time conversion sync
- ⚠️ Requires manual webhook setup in your platform

### Custom eCommerce Platforms

For platforms not listed above:

| Platform | Integration Method | Complexity | Guide |
|----------|-------------------|------------|-------|
| **Custom Stores** | JavaScript API + Webhook | Medium | [Custom Integration](/docs/ecommerce-custom-integration) |
| **Other Platforms** | Manual Event Tracking | Medium | [Track Custom Events](/docs/custom-events) |

***

## Choose Your Integration Path

### Path 1: Shopify or WooCommerce

**Best for:** Most eCommerce stores

1. Install the native app/plugin
2. Connect your ad platforms
3. Start tracking automatically

**Setup guides:**
- [Shopify Setup Guide](/docs/shopify)
- [WooCommerce Setup Guide](/docs/woocommerce)

### Path 2: Supported Cart Platforms

**Best for:** ThriveCart, SamCart, Memberful, Funnelish, CopeCart users

1. Install [AnyTrack tracking tag](/docs/install-anytrack-tag) on your site
2. Configure webhook in your cart platform
3. Connect [conversion sources](/docs/custom-conversion-source) in AnyTrack
4. Connect [ad platforms](/docs/facebook-ads)

**Setup guides:**
- [ThriveCart Integration](/docs/thrivecart)
- [SamCart Integration](/docs/samcart)
- [Memberful Integration](/docs/memberful)
- [Funnelish Integration](/docs/funnelish)
- [CopeCart Integration](/docs/copecart)

### Path 3: Custom or Unlisted Platforms

**Best for:** Custom-built stores, niche platforms

1. Install [AnyTrack tracking tag](/docs/install-anytrack-tag)
2. Implement purchase event using [JavaScript API](/docs/custom-events)
3. Set up [webhook for server-side tracking](/docs/server-side-tracking) (optional)
4. Connect [ad platforms](/docs/facebook-ads)

**Setup guide:**
- [Custom eCommerce Integration](/docs/ecommerce-custom-integration)

***

## Setup Steps (All Platforms)

Follow these steps regardless of which eCommerce platform you use:

### Step 1: Create Your Property

If you haven't already:
1. Create an [AnyTrack Property](/docs/create-property) for your store
2. Configure timezone and currency in [Property Settings](/docs/property-settings)

### Step 2: Install Platform Integration

**For Shopify/WooCommerce:**
- Install the native app/plugin from your platform's app store
- Follow platform-specific setup guide

**For Webhook Platforms:**
- Install [AnyTrack tracking tag](/docs/install-anytrack-tag) on your website
- Configure webhook in your cart platform
- Add webhook URL from AnyTrack dashboard

**For Custom Platforms:**
- Install [AnyTrack tracking tag](/docs/install-anytrack-tag)
- Implement purchase tracking using [Custom Integration guide](/docs/ecommerce-custom-integration)

### Step 3: Connect Ad Platforms

Send conversion data to your ad platforms:

1. Go to **AnyTrack Dashboard** → **Integrations**
2. Connect your advertising platforms:
   - [Facebook Ads](/docs/facebook-ads) - Meta Conversion API
   - [Google Ads](/docs/google-ads) - Enhanced Conversions
   - [TikTok Ads](/docs/tiktok-ads) - Events API
   - [Microsoft Ads](/docs/microsoft-ads)
3. Enable [server-side tracking](/docs/server-side-tracking) (Conversion API)

> ❗ ****
>
> After connecting ad platforms through AnyTrack, remove any direct tag installations from your store. AnyTrack manages tag delivery automatically to prevent duplicate events. See [troubleshooting guide](/docs/troubleshooting-integrations).

### Step 4: Verify Tracking Works

Test your integration:

**1. Tag Installation**
- [ ] Install [AnyTrack Pixel Helper](/docs/anytrack-chrome-extension)
- [ ] Visit your store - extension icon should turn blue
- [ ] Check [Property Settings](/docs/property-settings) for PageView events

**2. Purchase Tracking**
- [ ] Complete a test purchase (use small amount)
- [ ] Check AnyTrack dashboard → [Live Events](/docs/integration-event-log) for Purchase event
- [ ] Verify purchase appears in [Conversions Report](/docs/conversions-report)
- [ ] Check ad platform Event Manager for conversion (15-20 min delay)

**3. Campaign Attribution**
- [ ] Add [UTM parameters](/docs/utm-parameters) to your ad campaigns
- [ ] Click your own ad with UTM tracking
- [ ] Complete test purchase
- [ ] Verify attribution in [Campaign Reports](/docs/campaign-report)

**Platform-specific checklists:**
- [Shopify Verification Checklist](/docs/shopify-checklist)
- [WooCommerce Verification Guide](/docs/woocommerce)

***

## Events Tracked by eCommerce Integrations

AnyTrack automatically tracks these [standard eCommerce events](/docs/standard-events):

### Customer Journey Events

**ViewContent**
- **Triggers when:** Customer views product page
- **Data collected:** Product name, SKU, price, category

**AddToCart**
- **Triggers when:** Customer adds product to cart
- **Data collected:** [Product details](/docs/event-attributes#product-attributes), quantity, cart value

**InitiateCheckout**
- **Triggers when:** Customer starts checkout process
- **Data collected:** Cart contents, total value

**AddPaymentInfo**
- **Triggers when:** Customer enters payment information
- **Data collected:** Payment method type

**Purchase**
- **Triggers when:** Order is completed
- **Data collected:** Order ID, `revenue`, products, [customer email](/docs/event-attributes#customer-traits-supported-by-AnyTrack), shipping

> 📘 **Event**
>
> Event tracking varies by platform. Native integrations ([Shopify](/docs/shopify), [WooCommerce](/docs/woocommerce)) track all events. Webhook-based integrations typically track Purchase events only. Check your platform's integration guide for specifics.

***

## What Gets Sent to Ad Platforms

When a purchase occurs, AnyTrack sends this data to your connected ad platforms via [server-side tracking](/docs/server-side-tracking):

**Conversion Event:**
- [Event name](/docs/standard-events) (Purchase, CompleteRegistration, Lead)
- Order value and currency
- Product names and SKUs
- Click ID (`fbclid`, `gclid`, ttclid)
- [UTM campaign parameters](/docs/utm-parameters)

**Customer Data (for match rate):**
- [Email address (hashed)](/docs/event-attributes#automatic-data-hashing)
- [Phone number (hashed)](/docs/event-attributes#customer-traits-supported-by-AnyTrack)
- First and last name (hashed)
- City, state, country
- IP address

> 📘 **Privacy**
>
> All personal data is [hashed using SHA-256](/docs/event-attributes#automatic-data-hashing) before being sent to ad platforms. This protects customer privacy while enabling accurate attribution and improving [Event Match Quality](/docs/facebook-event-match-quality).

***

## Advanced Features

### Event Mapping

Customize which [events](/docs/standard-events) are sent to each ad platform:

- Map Purchase to "Lead" for lead generation campaigns
- Send different event names to different platforms
- Filter events by product category or value

[Event Mapping Guide](/docs/event-mapping)

### Custom Audiences

Build remarketing audiences based on purchase behavior:

- Customers who purchased in last 30 days
- High-value customers (AOV > $100)
- Specific product purchasers
- Cart abandoners

### Value Rules

Apply custom value calculations:

- Add fixed profit margin to each sale
- Apply different values for different products
- Set custom conversion values for lead gen

***

## Troubleshooting Common Issues

### Purchases Not Appearing in AnyTrack

**Symptoms:** Completed orders don't show in [Conversions Report](/docs/conversions-report)

**Solutions:**
1. **Check integration status** - Verify "Connected" in AnyTrack dashboard
2. **Test with Pixel Helper** - Ensure [AnyTrack tag](/docs/anytrack-tag) is loading on store pages
3. **Check webhook configuration** - Verify webhook URL is correct (webhook-based platforms)
4. **Review Event Log** - Check for error messages in [integration Event Log](/docs/integration-event-log)
5. **Verify Property ID** - Ensure correct Property is connected

[Full Troubleshooting Guide →](/docs/troubleshooting-integrations)

### Purchases Not Appearing in Ad Platforms

**Symptoms:** AnyTrack shows purchase, but Facebook/Google doesn't

**Solutions:**
1. **Wait 15-20 minutes** - [Server-side events](/docs/server-side-tracking) can be delayed
2. **Check ad platform connection** - Verify [ad platform is connected](/docs/facebook-ads) in AnyTrack
3. **Verify conversion API** - Ensure [server-side tracking](/docs/server-side-tracking) is enabled
4. **Check Event Manager** - Look for deduplication warnings
5. **Review attribution window** - Purchase may be outside attribution window

### Attribution Incorrect or Missing

**Symptoms:** Conversions show as "direct" instead of campaign name

**Solutions:**
1. **Add UTM parameters** - Ensure ads use [UTM tracking templates](/docs/utm-parameters)
2. **Check click tracking** - Verify clicks appear in [Campaign Reports](/docs/campaign-report)
3. **Test attribution flow** - Click ad → purchase → verify in reports
4. **Review attribution window** - Check [Property Settings](/docs/property-settings) attribution window
5. **Clear browser cookies** - Test with fresh incognito session

### Duplicate Conversions

**Symptoms:** Same order appears multiple times in ad platforms

**Solutions:**
1. **Remove direct Tracking Tags** - Disable Meta Pixel, Google tag from theme
2. **Check for duplicate tags** - Use Tag Assistant to find multiple Tracking Tags
3. **Disable platform plugins** - Turn off "Facebook for WooCommerce" etc.
4. **Review event deduplication** - Check [Event Manager](/docs/facebook-event-match-quality) for warnings

### Low Match Rate (Meta/Facebook)

**Symptoms:** Facebook Event Manager shows low match quality

**Understanding:**
- Match rate depends on [customer data](/docs/event-attributes#customer-traits-supported-by-AnyTrack) your platform collects
- Shopify/WooCommerce: High match rate (email, name, phone collected)
- Webhook platforms: Varies by data provided
- Anonymous checkout: Lower match rate expected

**Solutions:**
1. **Require email at checkout** - Don't allow guest checkout
2. **Collect phone numbers** - Add phone field to checkout
3. **Enable server-side API** - [Conversion API](/docs/facebook-ads) improves match rate
4. **Check data mapping** - Ensure customer fields are mapped correctly

> 📘 **Note**
>

***

## Common Questions

<FaqAccordion
  title="Common Questions"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "Can I track multiple stores with one AnyTrack account?",
      answer: "Yes! Create a separate <a href='/docs/create-property'>Property</a> for each store. Each Property gets its own tracking tag, separate conversion reports, and custom settings (timezone, currency). The number of Properties you can create depends on your plan. <a href='https://anytrack.io/pricing'>View pricing</a>"
    },
    {
      question: "Do I need to install the tracking tag AND the integration?",
      answer: "It depends on your platform: <strong>Shopify/WooCommerce:</strong> No separate tag needed - the app/plugin handles everything. <strong>ThriveCart/SamCart/Others:</strong> Yes - install <a href='/docs/install-anytrack-tag'>tag on website</a> AND configure webhook. <strong>Custom platforms:</strong> Install tag and implement purchase tracking code. Check your platform's integration guide for specific requirements."
    },
    {
      question: "Will this affect my store's page speed?",
      answer: "No. AnyTrack's <a href='/docs/anytrack-tag'>tracking tag</a> is lightweight (~15KB), asynchronous (doesn't block page rendering), cached for repeat visitors, and server-side for purchase events (no client-side delay). Most stores see no measurable impact on performance."
    },
    {
      question: "What happens to conversions if a customer uses ad blockers?",
      answer: "AnyTrack uses <a href='/docs/server-side-tracking'>server-side tracking</a> for conversions. <strong>Ad blockers can't block server-side events</strong> - Purchase tracking happens on your server, not in the browser. <strong>Client-side tracking affected</strong> - Click tracking and page view attribution may be reduced. <strong>Overall impact minimal</strong> - ~95%+ of conversions are still tracked via server-side webhooks. This is a major advantage over client-side-only tracking which ad blockers can completely block."
    },
    {
      question: "Can I track subscriptions and recurring <code>revenue</code>?",
      answer: "Yes! For subscription-based products: <strong>Initial purchase:</strong> Tracked as standard Purchase event. <strong>Recurring payments:</strong> Tracked as separate Purchase events each billing cycle. <strong>Subscription status:</strong> Some platforms (Memberful, WooCommerce Subscriptions) track renewal, cancellation events. Check your platform's guide for subscription-specific tracking capabilities."
    },
    {
      question: "How accurate is the attribution?",
      answer: "Attribution accuracy depends on several factors: <strong>Server-side conversions:</strong> 100% accurate (received directly from your store). <strong>Click-to-conversion matching:</strong> 95-99% accurate using click IDs. <strong><a href='/docs/utm-parameters'>UTM tracking</a>:</strong> Required for campaign-level attribution. <strong>Attribution window:</strong> Customizable in <a href='/docs/property-settings'>Property Settings</a> (default: 30 days). Unlike client-side-only tracking, AnyTrack receives actual conversion data from your store, making attribution highly reliable."
    },
    {
      question: "Can I track offline orders or phone sales?",
      answer: "Yes! Use AnyTrack's offline conversion tracking: <a href='/docs/offline-conversions'>Manual conversion upload</a>, CSV bulk import, or API integration for CRM systems. This allows you to attribute phone or in-person sales to online campaigns."
    }
  ]}
/>

***

## Next Steps

Ready to connect your eCommerce platform?

### For Shopify Stores:
1. **[Install Shopify Integration](/docs/shopify)** - One-click app installation
2. **[Connect Facebook Ads](/docs/facebook-ads)** - Enable Meta Conversion API
3. **[Verify Setup](/docs/shopify-checklist)** - Complete integration checklist

### For WooCommerce Stores:
1. **[Install WooCommerce Plugin](/docs/woocommerce)** - WordPress plugin setup
2. **[Connect Google Ads](/docs/google-ads)** - Enable Enhanced Conversions
3. **[Test Integration](/docs/woocommerce)** - Verify tracking works

### For Other Platforms:
1. **[Choose Your Platform](https://anytrack.io/integrations/eCommerce)** - Find your cart platform
2. **[Install Tracking Tag](/docs/install-anytrack-tag)** - Add to your website
3. **[Configure Webhook](/docs/ecommerce-custom-integration)** - Set up conversion tracking

***

## Related Resources

### Platform Guides
- [Shopify Integration](/docs/shopify)
- [WooCommerce Integration](/docs/woocommerce)
- [ThriveCart Integration](/docs/thrivecart)
- [SamCart Integration](/docs/samcart)
- [Custom eCommerce Integration](/docs/ecommerce-custom-integration)

### Ad Platform Setup
- [Facebook Ads Integration](/docs/facebook-ads)
- [Google Ads Integration](/docs/google-ads)
- [TikTok Ads Integration](/docs/tiktok-ads)
- [Microsoft Ads Integration](/docs/microsoft-ads)

### Tracking & Attribution
- [UTM Parameters Guide](/docs/utm-parameters)
- [Event Mapping](/docs/event-mapping)
- [Campaign Reports](/docs/campaign-report)
- [Conversions Report](/docs/conversions-report)
- [Event Attributes](/docs/event-attributes)
- [Server-Side Tracking](/docs/server-side-tracking)

### Support
- [Troubleshooting Guide](/docs/troubleshooting-integrations)
- [Contact Support](/docs/contact-support)
- [Integration Catalog](https://anytrack.io/integrations/eCommerce)
