Skip to content

Events

Events for Almeta Cloud are similar to events for Google Analytics, Facebook Ads, Bing Ads, etc. You run small pieces of code to track corresponding actions, and you have an option to add additional information. Most of the event parameters are optional.

We recommend using the standard events when possible, but you can also create custom events by adding custom: prefix to the event name. For example, custom:my_event.

add_to_cart Event

Triggered when a user adds an item to their shopping cart.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_to_cart'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'add_to_cart',
  data: {
    currency: 'USD',
    value: 49.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

add_to_list Event

Triggered when a user adds an item to a list (e.g., wishlist, favorites, etc.).

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_to_list'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.list_idOptionalString or NumberList ID
javascript
_almeta.t('event', {
  name: 'add_to_list',
  data: {
    currency: 'USD',
    value: 49.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    list_id: 'wishlist-123'
  }
})

add_review Event

Triggered when a user adds a review for a product or service.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_review'
data.subject_idRequiredString or NumberSubject ID (e.g., product ID, service ID)
data.subject_typeOptionalStringSubject type (e.g., product, service)
data.subject_nameOptionalStringSubject name
data.ratingOptionalNumberReview rating (1-5)
javascript
_almeta.t('event', {
  name: 'add_review',
  data: {
    subject_id: 'SKU-12345',
    subject_type: 'product',
    subject_name: 'Product Name',
    rating: 4
  }
})

add_payment_info Event

Triggered when a user adds payment information during the checkout process.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_payment_info'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.payment_typeOptionalString or NumberPayment type (e.g., visa, apple pay)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.promotionsOptionalArray of ObjectsArray of promotions applied to the transaction. Each promotion object should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
javascript
_almeta.t('event', {
  name: 'add_payment_info',
  data: {
    currency: 'USD',
    value: 99.99,
    payment_type: 'visa',
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    promotions: [
      {
        id: 'PROMO-DEF',
        name: 'Free Shipping',
        type: 'free_shipping'
      }
    ]
  }
})

add_shipping_info Event

Triggered when a user adds shipping information during the checkout process.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_shipping_info'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.shipping_tierOptionalString or NumberShipping tier (e.g., ground, next day)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.promotionsOptionalArray of ObjectsArray of promotions applied to the transaction. Each promotion object should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
javascript
_almeta.t('event', {
  name: 'add_shipping_info',
  data: {
    currency: 'USD',
    value: 99.99,
    shipping_tier: 'ground',
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    promotions: [
      {
        id: 'PROMO-DEF',
        name: 'Free Shipping',
        type: 'free_shipping'
      }
    ]
  }
})

add_user Event

Triggered when a user is added to a group account.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'add_user'
data.group_idOptionalString or NumberGroup or cohort ID
javascript
_almeta.t('event', {
  name: 'add_user',
  data: {
    group_id: 'authors'
  }
})

apply_collection_filters Event

Triggered when filters are applied to a collection or product list.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'apply_collection_filters'
data.collection_idRequiredString or NumberCollection or product list ID
data.collection_nameOptionalStringName of the collection or product list
data.filter_idOptionalString or NumberID of the applied filter
data.filter_valuesOptionalArray of StringsArray of filter values
data.items_countOptionalNumberNumber of items in the filtered collection
javascript
_almeta.t('event', {
  name: 'apply_collection_filters',
  data: {
    collection_id: 'collection-abc',
    collection_name: 'Summer Collection',
    filter_id: 'color',
    filter_values: ['red', 'blue'],
    items_count: 25
  }
})

apply_promotion Event

Triggered when a promotion is applied to a transaction or order.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'apply_promotion'
data.promotionOptionalArray of ObjectsArray of promotion details. Each object in the array should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
javascript
_almeta.t('event', {
  name: 'apply_promotion',
  data: {
    promotion: [
      {
        id: 'PROMO-ABC',
        name: 'Spring Sale',
        type: 'discount_code',
        coupon: 'SPRING2023',
        discount: 10.0
      }
    ]
  }
})

cancel_order Event

Triggered when an order is canceled.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'cancel_order'
data.transaction_idRequiredString or NumberTransaction or order ID
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'cancel_order',
  data: {
    transaction_id: 'ORDER-12345',
    currency: 'USD',
    value: 99.99,
    tax: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

cancel_plan Event

Triggered when a subscription plan is canceled.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'cancel_plan'
data.planOptionalString or NumberSubscription plan name or ID
javascript
_almeta.t('event', {
  name: 'cancel_plan',
  data: {
    plan: 'monthly-subscription'
  }
})

cancel_return Event

Triggered when a return is canceled.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'cancel_return'
data.transaction_idRequiredString or NumberTransaction or order ID
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.return_shippingOptionalNumberReturn shipping cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'cancel_return',
  data: {
    transaction_id: 'RETURN-12345',
    currency: 'USD',
    value: 49.99,
    tax: 2.99,
    return_shipping: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

cancel_tutorial Event

Triggered when a tutorial is canceled.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'cancel_tutorial'
data.tutorialOptionalString or NumberTutorial name or ID
javascript
_almeta.t('event', {
  name: 'cancel_tutorial',
  data: {
    tutorial: 'getting-started'
  }
})

change_plan Event

Triggered when a subscription plan is changed.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'change_plan'
data.new_planOptionalString or NumberNew subscription plan name or ID
data.old_planOptionalString or NumberOld subscription plan name or ID
javascript
_almeta.t('event', {
  name: 'change_plan',
  data: {
    new_plan: 'premium-monthly',
    old_plan: 'basic-monthly'
  }
})

chargeback Event

Triggered when a chargeback occurs.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'chargeback'
data.reasonOptionalString or NumberChargeback reason
data.transaction_idRequiredString or NumberTransaction or order ID
data.currencyRequiredString3-letter ISO 4217 currency code
data.valueRequiredNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'chargeback',
  data: {
    reason: 'unauthorized',
    transaction_id: 'ORDER-12345',
    currency: 'USD',
    value: 99.99,
    tax: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

click_cta Event

Triggered when a user clicks on a call-to-action (CTA) element.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'click_cta'
data.idOptionalString or NumberCTA ID
javascript
_almeta.t('event', {
  name: 'click_cta',
  data: {
    id: 'cta-signup-button'
  }
})

close_live_chat Event

Triggered when a live chat session is closed.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'close_live_chat'
javascript
_almeta.t('event', {
  name: 'close_live_chat',
})

complete_return Event

Triggered when a return is completed.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'complete_return'
data.transaction_idRequiredString or NumberTransaction or order ID
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.return_shippingOptionalNumberReturn shipping cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'complete_return',
  data: {
    transaction_id: 'RETURN-12345',
    currency: 'USD',
    value: 49.99,
    tax: 2.99,
    return_shipping: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

complete_tutorial Event

Triggered when a tutorial is completed.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'complete_tutorial'
data.tutorialOptionalString or NumberTutorial name or ID
javascript
_almeta.t('event', {
  name: 'complete_tutorial',
  data: {
    tutorial: 'getting-started'
  }
})

contact Event

Triggered when a user submits a contact form.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'contact'
data.formOptionalString or NumberContact form ID
javascript
_almeta.t('event', {
  name: 'contact',
  data: {
    form: 'contact-form-main'
  }
})

custom Event

Triggered for custom events defined by the user.

ParameterRequired?FormatDescription
nameRequiredStringCustom event name (must start with 'custom:')
dataOptionalObjectCustom event data in JSON format
javascript
_almeta.t('event', {
  name: 'custom:my_custom_event',
  data: {
    custom_field_1: 'value1',
    custom_field_2: 'value2'
  }
})

customize_product Event

Triggered when a user customizes a product.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'customize_product'
data.idRequiredString or NumberProduct ID
data.brandOptionalStringProduct brand
data.nameOptionalStringProduct name
data.variantOptionalString or NumberProduct variant
data.customizationOptionalStringProduct customization details
javascript
_almeta.t('event', {
  name: 'customize_product',
  data: {
    id: 'SKU-12345',
    brand: 'Brand Name',
    name: 'Product Name',
    variant: 'Variant Details',
    customization: 'Custom engraving: "Happy Birthday"'
  }
})

deny_promotion Event

Triggered when a promotion is denied or rejected.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'deny_promotion'
data.promotionOptionalArray of ObjectsArray of promotion details. Each object in the array should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
data.reasonOptionalString or NumberReason for denying the promotion
javascript
_almeta.t('event', {
  name: 'deny_promotion',
  data: {
    promotion: [
      {
        id: 'PROMO-ABC',
        name: 'Expired Promotion',
        type: 'discount_code',
        coupon: 'EXPIRED2022',
        discount: 10.0
      }
    ],
    reason: 'The promotion has expired'
  }
})

Triggered when a user makes a donation.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'donate'
data.transaction_idRequiredString or NumberTransaction or donation ID
data.currencyRequiredString3-letter ISO 4217 currency code
data.valueRequiredNumberTotal monetary value of the donation
data.taxOptionalNumberTax cost (if applicable)
data.itemsOptionalArray of ObjectsArray of donated items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'donate',
  data: {
    transaction_id: 'DONATION-12345',
    currency: 'USD',
    value: 50.0,
    tax: 0,
    items: [
      {
        id: 'ITEM-12345',
        name: 'Donation Item',
        price: 50.0,
        quantity: 1
      }
    ]
  }
})

email_bounce Event

Triggered when an email message bounces.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'email_bounce'
data.message_idOptionalString or NumberID of the bounced email message
data.list_idOptionalString or NumberID of the email list
data.typeOptionalStringBounce type: 'soft', 'hard', or 'error'
data.reasonOptionalString or NumberReason for the bounce
javascript
_almeta.t('event', {
  name: 'email_bounce',
  data: {
    message_id: 'MESSAGE-12345',
    list_id: 'LIST-54321',
    type: 'soft',
    reason: 'Mailbox temporarily unavailable'
  }
})

email_click Event

Triggered when a user clicks on a link in an email message.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'email_click'
data.message_idOptionalString or NumberID of the email message
data.list_idOptionalString or NumberID of the email list
data.link_idOptionalString or NumberID of the clicked link
javascript
_almeta.t('event', {
  name: 'email_click',
  data: {
    message_id: 'MESSAGE-12345',
    list_id: 'LIST-54321',
    link_id: 'LINK-98765'
  }
})

email_complaint Event

Triggered when a user marks an email message as spam or submits a complaint.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'email_complaint'
data.message_idOptionalString or NumberID of the email message
data.list_idOptionalString or NumberID of the email list
data.typeOptionalString or NumberType of complaint
javascript
_almeta.t('event', {
  name: 'email_complaint',
  data: {
    message_id: 'MESSAGE-12345',
    list_id: 'LIST-54321',
    type: 'spam'
  }
})

email_open Event

Triggered when a user opens an email message.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'email_open'
data.message_idOptionalString or NumberID of the email message
data.list_idOptionalString or NumberID of the email list
javascript
_almeta.t('event', {
  name: 'email_open',
  data: {
    message_id: 'MESSAGE-12345',
    list_id: 'LIST-54321'
  }
})

email_send Event

Triggered when an email message is sent.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'email_send'
data.message_idOptionalString or NumberID of the email message
data.typeOptionalString or NumberType of email (e.g., transactional, marketing)
data.list_idOptionalString or NumberID of the email list
javascript
_almeta.t('event', {
  name: 'email_send',
  data: {
    message_id: 'MESSAGE-12345',
    type: 'marketing',
    list_id: 'LIST-54321'
  }
})

end_trial Event

Triggered when a user's trial period ends.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'end_trial'
data.idOptionalString or NumberID of the trial
javascript
_almeta.t('event', {
  name: 'end_trial',
  data: {
    id: 'TRIAL-12345'
  }
})

error Event

Triggered when an error occurs.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'error'
data.codeOptionalString or NumberError code
data.textOptionalStringError text or message
javascript
_almeta.t('event', {
  name: 'error',
  data: {
    code: 'ERR-500',
    text: 'Internal Server Error'
  }
})

fraud_risk Event

Triggered when a fraud risk is detected.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'fraud_risk'
data.riskOptionalString or NumberFraud risk value
javascript
_almeta.t('event', {
  name: 'fraud_risk',
  data: {
    risk: 'high'
  }
})

hide_ad Event

Triggered when a user hides an advertisement.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'hide_ad'
data.idRequiredString or NumberAdvertisement ID (could be a URL)
data.nameOptionalStringAdvertisement name
data.reasonOptionalString or NumberReason for hiding the advertisement (e.g., irrelevant, repetitive)
javascript
_almeta.t('event', {
  name: 'hide_ad',
  data: {
    id: 'AD-12345',
    name: 'Summer Sale',
    reason: 'irrelevant'
  }
})

interact_with_ad Event

Triggered when a user interacts with an advertisement (e.g., clicks, likes, comments).

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'interact_with_ad'
data.idRequiredString or NumberAdvertisement ID (could be a URL)
data.nameOptionalStringAdvertisement name
data.typeOptionalString or NumberType of interaction (e.g., click, like, comment)
javascript
_almeta.t('event', {
  name: 'interact_with_ad',
  data: {
    id: 'AD-12345',
    name: 'Summer Sale',
    type: 'click'
  }
})

leave_page Event

Triggered when a user leaves a page.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'leave_page'
data.idRequiredStringPage URL
data.typeOptionalStringPage type (e.g., product, collection)
data.nameOptionalStringPage name
javascript
_almeta.t('event', {
  name: 'leave_page',
  data: {
    id: 'https://example.com/products/123',
    type: 'product',
    name: 'Product Name'
  }
})

login Event

Triggered when a user logs in.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'login'
data.methodOptionalStringLogin method (e.g., email, google)
javascript
_almeta.t('event', {
  name: 'login',
  data: {
    method: 'email'
  }
})

logout Event

Triggered when a user logs out.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'logout'
javascript
_almeta.t('event', {
  name: 'logout'
})

new_lead Event

Triggered when a new lead is generated.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'new_lead'
data.typeOptionalString or NumberType of lead
javascript
_almeta.t('event', {
  name: 'new_lead',
  data: {
    type: 'newsletter'
  }
})

pause_video Event

Triggered when a video is paused.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'pause_video'
data.idRequiredString or NumberVideo ID (could be a URL)
data.nameOptionalStringVideo name
data.seek_positionOptionalNumberCurrent seek position in seconds
javascript
_almeta.t('event', {
  name: 'pause_video',
  data: {
    id: 'VIDEO-12345',
    name: 'Product Demo',
    seek_position: 30
  }
})

play_video Event

Triggered when a video starts playing.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'play_video'
data.idRequiredString or NumberVideo ID (could be a URL)
data.nameOptionalStringVideo name
data.seek_positionOptionalNumberCurrent seek position in seconds
javascript
_almeta.t('event', {
  name: 'play_video',
  data: {
    id: 'VIDEO-12345',
    name: 'Product Demo',
    seek_position: 0
  }
})

post_content Event

Triggered when a user posts content (e.g., a comment, review, or user-generated content).

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'post_content'
data.idRequiredString or NumberContent ID (could be a URL)
data.typeOptionalStringContent type (e.g., product, page)
data.nameOptionalStringContent name
javascript
_almeta.t('event', {
  name: 'post_content',
  data: {
    id: 'CONTENT-12345',
    type: 'comment',
    name: 'Product Review'
  }
})

purchase Event

Triggered when a user completes a purchase.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'purchase'
data.transaction_idRequiredString or NumberTransaction ID
data.currencyRequiredStringTransaction currency in 3-letter ISO 4217 format
data.valueRequiredNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.shippingOptionalNumberShipping cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.promotionsOptionalArray of ObjectsArray of promotions applied to the transaction. Each promotion object should have the same properties as the promotions property within the items array.
data.discountOptionalNumberTotal discount value
javascript
_almeta.t('event', {
  name: 'purchase',
  data: {
    transaction_id: 'ORDER-12345',
    currency: 'USD',
    value: 99.99,
    tax: 5.99,
    shipping: 7.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    promotions: [
      {
        id: 'PROMO-DEF',
        name: 'Free Shipping',
        type: 'free_shipping'
      }
    ],
    discount: 10.0
  }
})

push_click Event

Triggered when a user clicks on a push notification.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'push_click'
data.message_idOptionalString or NumberID of the push notification message
data.list_idOptionalString or NumberID of the push notification list
data.link_idOptionalString or NumberID of the clicked link within the push notification
javascript
_almeta.t('event', {
  name: 'push_click',
  data: {
    message_id: 'PUSH-12345',
    list_id: 'LIST-54321',
    link_id: 'LINK-98765'
  }
})

push_error Event

Triggered when an error occurs while sending a push notification.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'push_error'
data.message_idOptionalString or NumberID of the push notification message
data.list_idOptionalString or NumberID of the push notification list
data.codeOptionalString or NumberError code
data.textOptionalStringError text or message
javascript
_almeta.t('event', {
  name: 'push_error',
  data: {
    message_id: 'PUSH-12345',
    list_id: 'LIST-54321',
    code: 'ERR-500',
    text: 'Internal Server Error'
  }
})

push_send Event

Triggered when a push notification is sent.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'push_send'
data.message_idOptionalString or NumberID of the push notification message
data.typeOptionalString or NumberType of push notification (e.g., transactional, marketing)
data.list_idOptionalString or NumberID of the push notification list
javascript
_almeta.t('event', {
  name: 'push_send',
  data: {
    message_id: 'PUSH-12345',
    type: 'marketing',
    list_id: 'LIST-54321'
  }
})

refund Event

Triggered when a refund is processed.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'refund'
data.transaction_idRequiredString or NumberTransaction ID
data.currencyOptionalStringTransaction currency in 3-letter ISO 4217 format
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'refund',
  data: {
    transaction_id: 'ORDER-12345',
    currency: 'USD',
    value: 49.99,
    tax: 2.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

remove_from_cart Event

Triggered when a user removes an item from their shopping cart.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'remove_from_cart'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'remove_from_cart',
  data: {
    currency: 'USD',
    value: 49.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

remove_from_list Event

Triggered when a user removes an item from a list (e.g., wishlist, favorites, etc.).

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'remove_from_list'
data.currencyOptionalString3-letter ISO 4217 currency code
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.list_idOptionalString or NumberList ID
javascript
_almeta.t('event', {
  name: 'remove_from_list',
  data: {
    currency: 'USD',
    value: 49.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    list_id: 'wishlist-123'
  }
})

remove_promotion Event

Triggered when a promotion is removed from a transaction or order.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'remove_promotion'
data.promotionOptionalArray of ObjectsArray of promotion details. Each object in the array should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
javascript
_almeta.t('event', {
  name: 'remove_promotion',
  data: {
    promotion: [
      {
        id: 'PROMO-ABC',
        name: 'Spring Sale',
        type: 'discount_code',
        coupon: 'SPRING2023',
        discount: 10.0
      }
    ]
  }
})

remove_user Event

Triggered when a user is removed from a group.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'remove_user'
data.group_idOptionalString or NumberGroup or cohort ID
javascript
_almeta.t('event', {
  name: 'remove_user',
  data: {
    group_id: 'authors'
  }
})

reset_password Event

Triggered when a user resets their password.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'reset_password'
dataOptionalObjectAdditional data related to the password reset event
javascript
_almeta.t('event', {
  name: 'reset_password'
})

schedule Event

Triggered when a user schedules an appointment or event.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'schedule'
data.typeOptionalString or NumberType of schedule (e.g., appointment, meeting, event)
javascript
_almeta.t('event', {
  name: 'schedule',
  data: {
    type: 'appointment'
  }
})

scroll_to_content Event

Triggered when a user scrolls to a specific content section on a page.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'scroll_to_content'
data.idRequiredString or NumberContent ID
data.typeOptionalStringContent type (e.g., product description, faq)
data.nameOptionalStringContent name
javascript
_almeta.t('event', {
  name: 'scroll_to_content',
  data: {
    id: 'product-description',
    type: 'product_description',
    name: 'Product Details'
  }
})

search Event

Triggered when a user performs a search.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'search'
data.queryOptionalStringSearch query
data.results_countOptionalNumberNumber of search results
javascript
_almeta.t('event', {
  name: 'search',
  data: {
    query: 'blue shoes',
    results_count: 25
  }
})

search_locations Event

Triggered when a user searches for locations (like stores, offices, etc).

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'search_locations'
data.locationsOptionalArray of Strings or NumbersList of searched locations
javascript
_almeta.t('event', {
  name: 'search_locations',
  data: {
    locations: ['Retail store #1', 'Retail store #2', 'Retail store #3']
  }
})

select_location Event

Triggered when a user selects a location.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'select_location'
data.location_idOptionalString or NumberLocation ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'select_location',
  data: {
    location_id: 'store-123'
  }
})

select_plan Event

Triggered when a user selects a subscription plan.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'select_plan'
data.planOptionalString or NumberSubscription plan name or ID
javascript
_almeta.t('event', {
  name: 'select_plan',
  data: {
    plan: 'premium-monthly'
  }
})

select_variant Event

Triggered when a user selects a product variant.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'select_variant'
data.idRequiredString or NumberProduct ID
data.brandOptionalStringProduct brand
data.nameOptionalStringProduct name
data.variantOptionalString or NumberProduct variant
javascript
_almeta.t('event', {
  name: 'select_variant',
  data: {
    id: 'SKU-12345',
    brand: 'Brand Name',
    name: 'Product Name',
    variant: 'Red'
  }
})

send_live_chat Event

Triggered when a user sends a message in a live chat session.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'send_live_chat'
data.content_idOptionalString or NumberID of the chat message content
javascript
_almeta.t('event', {
  name: 'send_live_chat',
  data: {
    content_id: 'MSG-12345'
  }
})

share Event

Triggered when a user shares content.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'share'
data.idRequiredString or NumberContent ID (could be a URL)
data.typeOptionalStringContent type (e.g., product, page)
data.nameOptionalStringContent name
data.destinationOptionalStringSharing destination (e.g., email, instagram)
javascript
_almeta.t('event', {
  name: 'share',
  data: {
    id: 'https://example.com/products/123',
    type: 'product',
    name: 'Product Name',
    destination: 'facebook'
  }
})

shipment_update Event

Triggered when there is an update to a shipment.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'shipment_update'
data.transaction_idRequiredString or NumberTransaction or order ID
data.updateRequiredString or NumberUpdate details
data.currencyRequiredStringTransaction currency in 3-letter ISO 4217 format
data.valueRequiredNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'shipment_update',
  data: {
    transaction_id: 'ORDER-12345',
    update: 'Shipped',
    currency: 'USD',
    value: 99.99,
    tax: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

signup Event

Triggered when a user signs up.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'signup'
data.methodOptionalStringSignup method (e.g., email, google)
javascript
_almeta.t('event', {
  name: 'signup',
  data: {
    method: 'email'
  }
})

sms_click Event

Triggered when a user clicks on a link in an SMS message.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'sms_click'
data.message_idOptionalString or NumberID of the SMS message
data.list_idOptionalString or NumberID of the SMS list
data.link_idOptionalString or NumberID of the clicked link
javascript
_almeta.t('event', {
  name: 'sms_click',
  data: {
    message_id: 'SMS-12345',
    list_id: 'LIST-54321',
    link_id: 'LINK-98765'
  }
})

sms_error Event

Triggered when an error occurs while sending an SMS message.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'sms_error'
data.message_idOptionalString or NumberID of the SMS message
data.list_idOptionalString or NumberID of the SMS list
data.codeOptionalString or NumberError code
data.textOptionalStringError text or message
javascript
_almeta.t('event', {
  name: 'sms_error',
  data: {
    message_id: 'SMS-12345',
    list_id: 'LIST-54321',
    code: 'ERR-500',
    text: 'Internal Server Error'
  }
})

sms_send Event

Triggered when an SMS message is sent.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'sms_send'
data.message_idOptionalString or NumberID of the SMS message
data.typeOptionalString or NumberType of SMS message (e.g., transactional, marketing)
data.list_idOptionalString or NumberID of the SMS list
javascript
_almeta.t('event', {
  name: 'sms_send',
  data: {
    message_id: 'SMS-12345',
    type: 'marketing',
    list_id: 'LIST-54321'
  }
})

start_checkout Event

Triggered when a user starts the checkout process.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'start_checkout'
data.currencyOptionalStringTransaction currency in 3-letter ISO 4217 format
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.promotionsOptionalArray of ObjectsArray of promotions applied to the transaction. Each promotion object should have the same properties as the promotions property within the items array.
javascript
_almeta.t('event', {
  name: 'start_checkout',
  data: {
    currency: 'USD',
    value: 99.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    promotions: [
      {
        id: 'PROMO-DEF',
        name: 'Free Shipping',
        type: 'free_shipping'
      }
    ]
  }
})

start_live_chat Event

Triggered when a user starts a live chat session.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'start_live_chat'
data.content_idOptionalString or NumberID of the chat message content
javascript
_almeta.t('event', {
  name: 'start_live_chat',
  data: {
    content_id: 'MSG-12345'
  }
})

start_return Event

Triggered when a user initiates a return process.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'start_return'
data.transaction_idRequiredString or NumberTransaction or order ID
data.currencyOptionalStringTransaction currency in 3-letter ISO 4217 format
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.taxOptionalNumberTax cost
data.return_shippingOptionalNumberReturn shipping cost
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
javascript
_almeta.t('event', {
  name: 'start_return',
  data: {
    transaction_id: 'RETURN-12345',
    currency: 'USD',
    value: 49.99,
    tax: 2.99,
    return_shipping: 5.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ]
  }
})

start_trial Event

Triggered when a user starts a trial.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'start_trial'
data.idOptionalString or NumberID of the trial
javascript
_almeta.t('event', {
  name: 'start_trial',
  data: {
    id: 'TRIAL-12345'
  }
})

start_tutorial Event

Triggered when a user starts a tutorial.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'start_tutorial'
data.tutorialOptionalString or NumberTutorial name or ID
javascript
_almeta.t('event', {
  name: 'start_tutorial',
  data: {
    tutorial: 'getting-started'
  }
})

submit_application Event

Triggered when a user submits an application.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'submit_application'
data.typeOptionalString or NumberType of application
javascript
_almeta.t('event', {
  name: 'submit_application',
  data: {
    type: 'job-application'
  }
})

subscribe Event

Triggered when a user subscribes to a list or service.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'subscribe'
data.idOptionalString or NumberSubscription or list ID
javascript
_almeta.t('event', {
  name: 'subscribe',
  data: {
    id: 'LIST-12345'
  }
})

Triggered when a user provides their tracking consent preferences.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'tracking_consent'
data.accept_requiredOptionalBooleanAccept required cookies (always true)
data.accept_analyticsRequiredBooleanAccept analytics tracking
data.accept_marketingRequiredBooleanAccept marketing tracking
data.accept_performanceOptionalBooleanAccept performance tracking
data.accept_otherOptionalBooleanAccept other tracking
javascript
_almeta.t('event', {
  name: 'tracking_consent',
  data: {
    accept_required: true,
    accept_analytics: true,
    accept_marketing: false,
    accept_performance: true,
    accept_other: false
  }
})

unsubscribe Event

Triggered when a user unsubscribes from a list or service.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'unsubscribe'
data.idOptionalString or NumberSubscription or list ID
data.reasonOptionalString or NumberUnsubscribe reason
javascript
_almeta.t('event', {
  name: 'unsubscribe',
  data: {
    id: 'LIST-12345',
    reason: 'no-longer-interested'
  }
})

video_position Event

Triggered when a video reaches a specific position or time.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'video_position'
data.idRequiredString or NumberVideo ID (could be a URL)
data.nameOptionalStringVideo name
data.seek_positionRequiredNumberCurrent video seek position in seconds
javascript
_almeta.t('event', {
  name: 'video_position',
  data: {
    id: 'VIDEO-12345',
    name: 'Product Demo',
    seek_position: 30
  }
})

view_ad_content Event

Triggered when a user views a specific section or content within an advertisement.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_ad_content'
data.idRequiredString or NumberAdvertisement ID (could be a URL)
data.nameOptionalStringAdvertisement name
data.contentRequiredString or NumberAdvertisement video section or content ID
data.seek_positionOptionalNumberCurrent video seek position in seconds
javascript
_almeta.t('event', {
  name: 'view_ad_content',
  data: {
    id: 'AD-12345',
    name: 'Summer Sale',
    content: 'CONTENT-98765',
    seek_position: 15
  }
})

view_ad Event

Triggered when a user views an advertisement.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_ad'
data.idRequiredString or NumberAdvertisement ID (could be a URL)
data.nameOptionalStringAdvertisement name
data.seek_positionOptionalNumberCurrent video seek position in seconds
javascript
_almeta.t('event', {
  name: 'view_ad',
  data: {
    id: 'AD-12345',
    name: 'Summer Sale',
    seek_position: 5
  }
})

view_cart Event

Triggered when a user views their shopping cart.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_cart'
data.currencyOptionalStringTransaction currency in 3-letter ISO 4217 format
data.valueOptionalNumberTotal monetary value (no shipping, no tax, after all discounts)
data.itemsOptionalArray of ObjectsArray of transaction items. Each object in the array should have the following properties:
id (Required, String or Number)Item ID
brand (Optional, String)Item brand
name (Optional, String)Item name
variant (Optional, String or Number)Item variant
price (Optional, Number)Item price
quantity (Optional, Number)Item quantity
collections (Optional, Array of Strings)Array of item collections or categories
promotions (Optional, Array of Objects)Array of promotions applied to the item. Each promotion object should have the following properties:
id (Optional, String)
name (Optional, String)
type (Optional, String)
coupon (Optional, String)
discount (Optional, Number)
location_id (Optional, String or Number)Item location ID (e.g., store location, supplier name)
data.promotionsOptionalArray of ObjectsArray of promotions applied to the transaction. Each promotion object should have the same properties as the promotions property within the items array.
javascript
_almeta.t('event', {
  name: 'view_cart',
  data: {
    currency: 'USD',
    value: 99.99,
    items: [
      {
        id: 'SKU-12345',
        name: 'Product Name',
        brand: 'Brand Name',
        variant: 'Variant Details',
        price: 49.99,
        quantity: 1,
        collections: ['category-a', 'category-b'],
        promotions: [
          {
            id: 'PROMO-ABC',
            name: 'Spring Sale',
            type: 'discount_code',
            coupon: 'SPRING2023',
            discount: 5.0
          }
        ],
        location_id: 'store-123'
      }
    ],
    promotions: [
      {
        id: 'PROMO-DEF',
        name: 'Free Shipping',
        type: 'free_shipping'
      }
    ]
  }
})

view_collection Event

Triggered when a user views a collection or product list.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_collection'
data.idRequiredString or NumberCollection ID (could be a URL)
data.nameOptionalStringCollection name
data.items_countOptionalNumberNumber of items in the collection
javascript
_almeta.t('event', {
  name: 'view_collection',
  data: {
    id: 'COLLECTION-12345',
    name: 'Summer Collection',
    items_count: 25
  }
})

view_content Event

Triggered when a user views a specific piece of content.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_content'
data.idRequiredString or NumberContent ID (could be a URL)
data.typeOptionalStringContent type (e.g., article, specification)
data.nameOptionalStringContent name
javascript
_almeta.t('event', {
  name: 'view_content',
  data: {
    id: 'CONTENT-12345',
    type: 'article',
    name: 'How to Choose the Right Product'
  }
})

view_product Event

Triggered when a user views a product.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_product'
data.idRequiredString or NumberProduct ID
data.brandOptionalStringProduct brand
data.nameOptionalStringProduct name
data.variantOptionalString or NumberProduct variant
data.priceOptionalNumberProduct price when viewed
data.original_priceOptionalNumberOriginal product price when viewed
data.currencyOptionalStringPrice currency in 3-letter ISO 4217 format
data.availableOptionalBooleanIs the product available for purchase
data.ratingOptionalNumberProduct rating when viewed (0 if none, 1-5 if available)
javascript
_almeta.t('event', {
  name: 'view_product',
  data: {
    id: 'SKU-12345',
    brand: 'Brand Name',
    name: 'Product Name',
    variant: 'Red',
    price: 49.99,
    original_price: 59.99,
    currency: 'USD',
    available: true,
    rating: 4.5
  }
})

view_product_media Event

Triggered when a user views a media item associated with a product.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_product_media'
data.product_idRequiredString or NumberProduct ID
data.product_brandOptionalStringProduct brand
data.product_nameOptionalStringProduct name
data.product_variantOptionalString or NumberProduct variant
data.typeOptionalStringMedia type (e.g., image, video)
data.idRequiredString or NumberMedia content ID
javascript
_almeta.t('event', {
  name: 'view_product_media',
  data: {
    product_id: 'SKU-12345',
    product_brand: 'Brand Name',
    product_name: 'Product Name',
    product_variant: 'Red',
    type: 'video',
    id: 'MEDIA-98765'
  }
})

view_promotion Event

Triggered when a user views a promotion.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_promotion'
data.promotionOptionalArray of ObjectsArray of promotion details. Each object in the array should have the following properties:
id (Optional, String)Promotion ID
name (Optional, String)Promotion name
type (Optional, String)Promotion type (e.g., discount_code, buy_one_get_one, etc.)
coupon (Optional, String)Coupon code associated with the promotion
discount (Optional, Number)Discount value
javascript
_almeta.t('event', {
  name: 'view_promotion',
  data: {
    promotion: [
      {
        id: 'PROMO-ABC',
        name: 'Spring Sale',
        type: 'discount_code',
        coupon: 'SPRING2023',
        discount: 10.0
      }
    ]
  }
})

view_video_content Event

Triggered when a user views a specific section or content within a video.

ParameterRequired?FormatDescription
nameRequiredStringEvent name 'view_video_content'
data.idRequiredString or NumberVideo ID (could be a URL)
data.nameOptionalStringVideo name
data.contentRequiredString or NumberVideo section or content ID
data.seek_positionOptionalNumberCurrent seek position in seconds
javascript
_almeta.t('event', {
  name: 'view_video_content',
  data: {
    id: 'VIDEO-12345',
    name: 'Product Demo',
    content: 'CONTENT-98765',
    seek_position: 30
  }
})