Alusio Docs

Command Palette

Search for a command to run...

Standard Events

Daftar lengkap event yang otomatis di-track Alusio + di mana mereka di-fire.

Standard Events

Sekali Meta Pixel + CAPI di-setup, event berikut otomatis dikirim. Tidak perlu coding tambahan.

ViewContent

  • Trigger: pengunjung membuka halaman detail produk
  • Channel: Pixel JS (browser)
  • Payload:
    {
      content_ids: ["product-id"],
      content_name: "Nama Produk",
      content_type: "product",
      value: 150000,
      currency: "IDR"
    }

AddToCart

  • Trigger: klik tombol "Tambah ke Cart" di product detail / quick view
  • Channel: Pixel JS (browser)
  • Payload: sama dengan ViewContent + contents: [{id, quantity}]

InitiateCheckout

  • Trigger: pengunjung masuk halaman /checkout
  • Channel: Pixel JS (browser)
  • Payload:
    {
      content_ids: ["id-1", "id-2"],
      num_items: 3,
      value: 450000,
      currency: "IDR"
    }

Purchase 🌟 (paling penting)

  • Trigger: order status berubah jadi paid via Midtrans webhook
  • Channel: Pixel JS + CAPI (deduplikasi via event_id = order.id)
  • Payload CAPI:
    {
      event_name: "Purchase",
      event_id: "order-uuid",     // dedup key
      user_data: {
        em: [sha256(email)],
        ph: [sha256(phone)],
        fn: [sha256(firstName)],
        country: [sha256("id")]
      },
      custom_data: {
        value: 750000,
        currency: "IDR",
        content_ids: [...],
        contents: [{id, quantity, item_price}],
        num_items: 4
      }
    }
  • Pixel browser: di-fire saat pengunjung di-redirect ke /order/[id]/success

Subscribe

  • Trigger: membership tier subscription jadi active (paid via Midtrans MBR-prefix order)
  • Channel: Pixel JS + CAPI
  • Payload: value = harga tier, predicted_ltv (opsional), subscription_id

Catatan PII Hashing

Semua data identitas (email, phone, name, country) di-hash SHA-256 sebelum dikirim ke CAPI — Meta hanya butuh hash untuk match dengan akun Facebook user, tidak pernah lihat raw value.