Skip to main content

OpenCart Integration

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​

SettingDescription
Account IDYour Sealmetrics Account ID (required)
Pixel URLCustom pixel domain (optional)
Track Product ViewsEnable view_item tracking
Track Add to CartEnable add_to_cart tracking
Track CheckoutEnable begin_checkout tracking
Track PurchasesEnable purchase conversion tracking
Contact Forms as LeadsTrack contact form submissions as lead conversions

Tracked Events​

Automatic Events​

EventDescription
pageviewAll page views with content grouping

E-commerce Events​

EventDescription
view_itemProduct page views
add_to_cartAdd to cart button clicks
begin_checkoutCheckout page views
purchaseOrder confirmation (conversion)

Content Groups​

Automatic detection based on OpenCart routes:

RouteGroup
common/homehome
product/productproduct
product/categorycatalog
product/manufacturerbrand
product/searchsearch
checkout/cartcart
checkout/checkoutcheckout
checkout/successthankyou
account/*account
information/contactcontact

Product Data​

The following product attributes are tracked:

{
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:

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:

// 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)
  • No consent banner for Sealmetrics' own analytics (self-assessed; Germany: open question — see Germany)

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
Written and maintained by the Sealmetrics Team