---
title: "OpenCart"
description: "Install the Sealmetrics OpenCart extension (3.x/4.x OCMOD package) for cookieless store analytics with product view, cart, checkout, and purchase events."
canonical_url: "https://docs.sealmetrics.com/integrations/ecommerce/opencart"
lang: "en"
date_generated: "2026-10-08T17:47:47.862Z"
source_hash: "00aa956f8d515a3c2cf3cd6c6234e9a47901d4fbe3c90ecb6820d1719a669f8c"
content_type: "implementation"
owner: "engineering"
llm_priority: "critical"
source_file: "integrations/ecommerce/opencart.mdx"
publisher: "Sealmetrics"
---

# OpenCart

Canonical page: https://docs.sealmetrics.com/integrations/ecommerce/opencart

Privacy-first, cookieless analytics for OpenCart stores.

## Compatibility

- OpenCart 4.x (primary support)
- OpenCart 3.x (with modifications)
- PHP 7.4+

## Installation

### OpenCart 4.x

1. Download the extension package from your Sealmetrics dashboard, under **Settings → Integrations**
2. Go to **Extensions > Installer**
3. Upload `sealmetrics.ocmod.zip`
4. Go to **Extensions > Extensions > Analytics**
5. Install **Sealmetrics Analytics**
6. Click **Edit** and configure your Account ID
7. Enable the extension and save

### OpenCart 3.x

1. Upload the `upload` folder contents to your OpenCart root
2. Go to **Extensions > Modifications** and click **Refresh**
3. Go to **Extensions > Analytics**
4. Install **Sealmetrics Analytics**
5. Configure your Account ID and enable

## Configuration

| Setting | Description |
|---------|-------------|
| **Account ID** | Your Sealmetrics Account ID (required) |
| **Pixel URL** | Custom pixel domain (optional) |
| **Track Product Views** | Enable `view_item` tracking |
| **Track Add to Cart** | Enable `add_to_cart` tracking |
| **Track Checkout** | Enable `begin_checkout` tracking |
| **Track Purchases** | Enable purchase conversion tracking |
| **Contact Forms as Leads** | Track contact form submissions as lead conversions |

## Tracked Events

### Automatic Events

| Event | Description |
|-------|-------------|
| `pageview` | All page views with content grouping |

### E-commerce Events

| Event | Description |
|-------|-------------|
| `view_item` | Product page views |
| `add_to_cart` | Add to cart button clicks |
| `begin_checkout` | Checkout page views |
| `purchase` | Order confirmation (conversion) |

### Content Groups

Automatic detection based on OpenCart routes:

| Route | Group |
|-------|-------|
| `common/home` | `home` |
| `product/product` | `product` |
| `product/category` | `catalog` |
| `product/manufacturer` | `brand` |
| `product/search` | `search` |
| `checkout/cart` | `cart` |
| `checkout/checkout` | `checkout` |
| `checkout/success` | `thankyou` |
| `account/*` | `account` |
| `information/contact` | `contact` |

## Product Data

The following product attributes are tracked:

```javascript
{
  product_id: "123",
  product_name: "Example Product",
  sku: "SKU-123",
  price: "29.99",
  category: "Electronics",
  brand: "Brand Name"
}
```

## Purchase Data

Purchase conversions include full order details:

```javascript
sealmetrics.conv('purchase', 99.99, {
  currency: 'EUR',
  payment_method: 'PayPal',
  coupon: 'SAVE10',
  items: [
    {
      product_id: "123",
      product_name: "Product",
      sku: "SKU-123",
      price: "49.99",
      quantity: "2",
      category: "Electronics",
      brand: "Brand",
      size: "Large",    // Options tracked as properties
      color: "Blue"
    }
  ]
});
```

## Custom Events

Track custom events via JavaScript:

```javascript
// Track custom micro-conversion
if (typeof sealmetrics !== 'undefined') {
  sealmetrics.micro('wishlist_add', {
    product_id: '123',
    product_name: 'Example Product'
  });
}

// Track custom conversion
sealmetrics.conv('lead', 0, {
  source: 'newsletter',
  campaign: 'spring_sale'
});
```

## Multi-store Support

For multi-store OpenCart installations:
- Configure Sealmetrics separately for each store
- Use different Account IDs if needed
- Each store tracks independently

## Privacy

- No cookies used
- No data that identifies anyone stored; reports are aggregated
- No order IDs stored externally
- Designed for GDPR and ePrivacy (self-assessed, see [Compliance](/compliance))
- No consent banner for Sealmetrics' own analytics (self-assessed; Germany: open question — see [Germany](/compliance/germany-ttdsg-self-assessment))

## Troubleshooting

### Tracker not loading

1. Verify Account ID is configured
2. Check extension is enabled
3. Clear OpenCart cache (**System > Maintenance > Clear**)

### Purchases not tracking

1. Ensure "Track Purchases" is enabled
2. Check order confirmation page loads correctly
3. Verify no JavaScript errors in console

### Add to cart not tracking

1. Check "Track Add to Cart" is enabled
2. Ensure cart uses standard OpenCart methods

## Related documentation

- [Installation](/implementation/tracker/installation) — how the underlying Sealmetrics tracker loads.
- [E-commerce Setup Guide](/implementation/ecommerce-conversion-tracking/ecommerce-setup-guide) — step-by-step setup for the funnel events this extension emits.
- [PrestaShop](/integrations/ecommerce/prestashop) — a sibling self-hosted store integration.
- [Magento 2](/integrations/ecommerce/magento) — another self-hosted store integration.
- [Integrations Overview](/integrations) — browse every platform Sealmetrics supports.
