Skip to content

Event Tracking Overview ​

MarkTag supports three types of events:

TypeSetupPlatform FeaturesNaming
Pre-definedRequiredYes — product sync, campaigns, attributionPascalCase
CustomRequiredNo — analytics onlyPascalCase

Pre-defined Events ​

Standardized events that integrate with Markopolo platform features:

  • ViewItem → Product catalog sync
  • Purchase → Revenue attribution
  • AddToCart → 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 }],
});

→ View all pre-defined events

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",
});

→ View custom events