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
- Download the extension package
- Go to Extensions > Installer
- Upload
sealmetrics.ocmod.zip - Go to Extensions > Extensions > Analytics
- Install SealMetrics Analytics
- Click Edit and configure your Account ID
- Enable the extension and save
OpenCart 3.x
- Upload the
uploadfolder contents to your OpenCart root - Go to Extensions > Modifications and click Refresh
- Go to Extensions > Analytics
- Install SealMetrics Analytics
- 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 |
scroll_depth | 25%, 50%, 75%, 100% scroll |
outbound_click | External link clicks |
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:
{
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 personal data collected
- No order IDs stored externally
- GDPR compliant by design
- No consent banner needed
Troubleshooting
Tracker not loading
- Verify Account ID is configured
- Check extension is enabled
- Clear OpenCart cache (System > Maintenance > Clear)
Purchases not tracking
- Ensure "Track Purchases" is enabled
- Check order confirmation page loads correctly
- Verify no JavaScript errors in console
Add to cart not tracking
- Check "Track Add to Cart" is enabled
- Ensure cart uses standard OpenCart methods