Event Tracking Overview
MarkTag supports three types of events:
| Type | Setup | Platform Features | Naming |
|---|---|---|---|
| Pre-defined | Required | Yes — product sync, campaigns, attribution | PascalCase |
| Custom | Required | No — analytics only | PascalCase |
Pre-defined Events
Standardized events that integrate with Markopolo platform features:
ViewItem→ Product catalog syncPurchase→ Revenue attributionAddToCart→ Cart abandonment campaigns
js
mtag("event", {
type: "Purchase",
email: "customer@example.com",
value: 99.99,
currency: "USD",
products: [{ id: "SKU-123", name: "Product Name", price: 99.99, quantity: 1 }],
});Custom Events
Track any interaction not covered by pre-defined events. Analytics only.
js
mtag("event", {
type: "RecipeFavorited",
email: "user@example.com",
recipe_id: "RCP-456",
});