Events
Use the standard names where they fit: your campaign counts them, and each moves a visit along the funnel.
Standard events#
| Name | What it is | Funnel step |
|---|---|---|
| page_view | A page seen | Arrived (a second page: looked around) |
| view_content | A product or offer looked at (with the product, as items) | Looked around |
| search | A search on the site (with what was searched for, as query) | Looked around |
| form_start | A form begun | Began a form or a basket |
| lead | A form sent, a demo or a call-back asked for | Lead or contact |
| contact | A WhatsApp chat, a call or an email begun | Lead or contact |
| sign_up | An account made | Signed up |
| add_to_cart | Something put in the basket | Began a form or a basket |
| begin_checkout | Checkout begun | Began checkout |
| purchase | A sale (with its value, order_id and items) | Bought, deposited or subscribed |
| first_deposit | A first deposit into a new account (with its value) | Bought, deposited or subscribed |
| subscribe | A subscription begun | Bought, deposited or subscribed |
| app_install | The app installed | Signed up |
| video_progress | How far into a video someone watched (video, percent, seconds; sent by itself for any video played on the page) |
page_view, form_start, lead (from a form marked data-optiq="lead") and contact are sent by the snippet and the SDK by themselves.
Fields on every event#
| Field | Type | Description |
|---|---|---|
| namerequired | string | Lower-case letters, digits and _, up to 40: a standard name or your own. |
| event_id | string | Your id for it, up to 100. A repeat with the same id counts once. Made for you when left out. |
| occurred_at | ISO 8601 | When it happened. From a browser, within the last day; from a server, within 90 days. Default: now. |
| value | number | A sale's or deposit's amount. |
| currency | string | Three letters: GMD, USD, EUR and so on. |
| email / phone | string | Who. Hashed before it is sent (by the SDK) or on arrival (by the API); never kept as written. |
| person_hash | string | Who, already hashed: SHA-256 of the trimmed, lower-case email, or of the phone's digits. |
| person_kind | string | email or phone: what person_hash is of, so Meta and TikTok match it. Default email. |
| items | Item[] | What was viewed, put in the basket or bought: up to 50, each with an id, and its name, category, brand, variant, price and quantity. |
| visitor_id | string | The browser's visitor id, when a server knows it. |
| properties | object | Up to 30 of your own: short strings (300 characters), numbers or true and false. |
| consent | string | granted, denied or unknown. Denied keeps nothing that tells one person from another. |
Note: Properties named like an email, phone, password, card, IBAN or passport are dropped, whatever they hold.
Your own events#
Any other lower-case name is kept too (for example quote_requested or loan_approved) and shown on the Developer page with its touches. Campaign results count the standard names, so use one wherever it fits.
Last updated 2026-11-04 UTC. The SDK is open source under the MIT licence. Tell us what is missing.