younifyd
Menu

Create an analytics event

Create an analytics event

POST/analytics/events

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Create an analytics event action (under analytics).
  3. Fill in the fields below, then reference the result from later steps as {{createAnAnalyticsEvent.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

namestringrequired

Name of the analytics rule this event corresponds to

event_typestringrequired

Type of event (e.g., click, conversion, query, visit)

dataobjectrequired

Event payload

user_idstring
doc_idstring
doc_idsarray<string>
qstring
analytics_tagstring
json
{
  "name": "string",
  "event_type": "string",
  "data": {
    "user_id": "string",
    "doc_id": "string",
    "doc_ids": [
      "string"
    ],
    "q": "string",
    "analytics_tag": "string"
  }
}

Response

Returns 200 with an object. Read it in later steps with {{createAnAnalyticsEvent.response.data.<field>}}.

okboolean
json
{
  "ok": false
}

Need more? See the Typesense guide for connection setup and behaviour shared by every action.

Was this page helpful?