Skip to main content
An event is one thing a person did in your product: signed up, placed an order, finished a transfer. Maqetin takes two calls for data, and journeys can start on events. A batch sends up to 100 calls in one request; the JavaScript SDK batches them for you. Give every call a messageId. If you send the same call again with the same messageId, Maqetin stores it once. The SDK does this for you when it retries.

Identified and anonymous events

A visitor who has not signed in has no userId. The SDK makes an anonymousId, keeps it in the browser’s storage, and tags their events with it. When you call identify for that visitor, their earlier anonymous events join their profile (Profiles has the rules). Anonymous events alone make no contact.
Call reset() in the SDK when a person logs out. Without it, the next person on the same browser is tracked as the previous one, and their events go on the previous person’s profile.

Name events

Name an event object.action, in lower case and in the past tense, such as order.placed. Maqetin accepts any name that is not empty, so the convention is yours to keep.
  • Names are case-sensitive: Order.Placed and order.placed are two events. A journey or segment matches the exact name your app sends, so pick one spelling and keep it. A journey or segment can target a name of up to 200 characters; keep yours well under that.
  • Ten objects (the part before the first dot) belong to Maqetin: app, install, deeplink, screen, page, push, in_app, link, message and email. Do not use them for your own events: the SDK sends page.viewed itself.

Properties

properties is an object with the details of the event. Its values can be any JSON value: text, numbers, booleans, objects or lists. With no properties, the event has {}. An event cannot be changed after it lands, so send what you need in it. A property name cannot hold the character U+0000. Size limits are in Track and Batch.

Context

context says where the call came from. The JavaScript SDK fills it; if you call the routes yourself, send only what you know, or leave it out. Most fields have a length limit, and a value over it makes the call a 400. Set disableAutoCollection: true in the SDK to leave these fields out; the JavaScript SDK page lists what it collects.

Find your events in the console

In the console, open Developers, then the Event names tab. A refused call is never stored, so it never shows here. If a name is missing, check the exact spelling and case your app sends, and the answers your app got. For one person’s events, open their contact: the Activity tab lists them newest first, with the events from before they were identified (Contacts). The Trait keys tab next to Event names lists the traits your contacts can hold (Profiles).