Click

Events categorized under the click level are utilized to monitor and analyze user interactions within the storefront. For instance, tracking when a user adds a product to the cart or initiates a login process.

Delivery promise

This event is triggered when a pincode present in the URL is updated. This can be triggered from any page containing the pincode details in the URL. It provides comprehensive details about the user, the pincode added, and the context in which the event occurred. Context here implies details about the version of the library sending the event and the device information like os, screen size, timezone etc.

Events
click/delivery_promise/click/v1
# This event is triggered when a user performs a pincode servicability check. It includes detailed information about the user, the pincode added and details about the version of the library and the device information like os, screen size, timezone etc.

Delivery promise/delivery_promise/click/v1

This event is triggered when a user performs a pincode servicability check. It includes detailed information about the user, the pincode added and details about the version of the library and the device information like os, screen size, timezone etc.

Payload
Properties
Event emitted when a user checks any pincode for servicability.
context
object
Required
Context information related to the environment where the event occurred. This includes details about the library generating the event, the operating system, user timezone, screen resolution, user agent, locale, and device specifications.
Properties
library
object
Required
Library information which is sending the event.
Properties
name
string
Required
Name of the library sending the event.
version
string
Required
Version of the library.
os
object
Required
Operating system details for the user device.
Properties
name
string
Required
OS name.
version
string
Required
OS version.
timezone
string
Required
User's timezone.
screen
object
Required
Screen resolution details.
Properties
width
integer
Required
Screen width in pixels.
height
integer
Required
Screen height in pixels.
user_agent
string
Required
User agent information.
locale
string
Required
User's locale information.
device
object
Required
User's device details.
Properties
is_mobile
boolean
Required
Indicates if the device is mobile or not.
query
string|null
Search query entered by the user, if applicable. Use `null` if not applicable.
user_id
string|null
Identifier of the user performing the delivery_promise action. Use `null` if the user is anonymous.
version
string
Required
Version of the event schema.
currency
string
Required
Currency associated with the country pincode being checked.
event_id
string
Required
Unique identifier for the event.
country_iso_code
string
Required
ISO2 code for the country associated with pincode being checked.
city
string
Required
City associated with pincode being checked.
country
string
Required
Country associated with pincode being checked.
pincode
string
Required
Pincode being validated by the user.
sector
string|null
Sector associated with pincode being checked.
position
string|null
Position of the product in the listing when it was clicked on. Use `null` if not applicable.
search_id
string|null
Identifier for the search journey, if applicable. Use `null` if not applicable.
company_id
integer
Unique identifier for the company associated with the event.
event_name
string
Required
Name of the event, typically "delivery_promise".
event_type
string
Required
Type of the event (e.g., "click").
Enum
anonymous_id
string
Required
Anonymous identifier for the user.
company_mode
string
Mode of the company (e.g., "live", "development").
Enum
utm_campaign
string
Specific marketing campaign associated with the product addition.
utm_medium
string
Marketing medium through which the user arrived at the product.
utm_source
string
Marketing source driving the traffic to the product.
event_timestamp
string
| date-time
Timestamp of the event.
company_created_on
string
| date-time
Timestamp or detailed information indicating when the company was created. Can be an ISO 8601 string or a complex object with additional details.
Payload Schema JSON
1{
2 "type": "object",
3 "required": [
4 "context",
5 "anonymous_id",
6 "pincode",
7 "country",
8 "currency",
9 "version",
10 "event_id",
11 "country_iso_code",
12 "city",
13 "event_name",
14 "event_type"
15 ],
16 "description": "Event emitted when a user checks any pincode for servicability.",
17 "properties": {
18 "context": {
19 "type": "object",
20 "description": "Context information related to the environment where the event occurred. This includes details about the library generating the event, the operating system, user timezone, screen resolution, user agent, locale, and device specifications.",
21 "properties": {
22 "library": {
23 "type": "object",
24 "description": "Library information which is sending the event.",
25 "properties": {
26 "name": {
27 "type": "string",
28 "description": "Name of the library sending the event.",
29 "example": "flick"
30 },
31 "version": {
32 "type": "string",
33 "description": "Version of the library.",
34 "example": "1.1.1"
35 }
36 },
37 "required": [
38 "name",
39 "version"
40 ]
41 },
42 "os": {
43 "type": "object",
44 "description": "Operating system details for the user device.",
45 "properties": {
46 "name": {
47 "type": "string",
48 "description": "OS name.",
49 "example": "Mac OS"
50 },
51 "version": {
52 "type": "string",
53 "description": "OS version.",
54 "example": "10.15.7"
55 }
56 },
57 "required": [
58 "name",
59 "version"
60 ]
61 },
62 "timezone": {
63 "type": "string",
64 "description": "User's timezone.",
65 "example": "Asia/Calcutta"
66 },
67 "screen": {
68 "type": "object",
69 "description": "Screen resolution details.",
70 "properties": {
71 "width": {
72 "type": "integer",
73 "description": "Screen width in pixels.",
74 "example": 1512
75 },
76 "height": {
77 "type": "integer",
78 "description": "Screen height in pixels.",
79 "example": 859
80 }
81 },
82 "required": [
83 "width",
84 "height"
85 ]
86 },
87 "user_agent": {
88 "type": "string",
89 "description": "User agent information.",
90 "example": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
91 },
92 "locale": {
93 "type": "string",
94 "description": "User's locale information.",
95 "example": "en-GB"
96 },
97 "device": {
98 "type": "object",
99 "description": "User's device details.",
100 "properties": {
101 "is_mobile": {
102 "type": "boolean",
103 "description": "Indicates if the device is mobile or not.",
104 "example": false
105 }
106 },
107 "required": [
108 "is_mobile"
109 ]
110 }
111 },
112 "required": [
113 "library",
114 "os",
115 "timezone",
116 "screen",
117 "user_agent",
118 "locale",
119 "device"
120 ]
121 },
122 "query": {
123 "type": [
124 "string",
125 "null"
126 ],
127 "description": "Search query entered by the user, if applicable. Use `null` if not applicable."
128 },
129 "user_id": {
130 "type": [
131 "string",
132 "null"
133 ],
134 "description": "Identifier of the user performing the delivery_promise action. Use `null` if the user is anonymous."
135 },
136 "version": {
137 "type": "string",
138 "description": "Version of the event schema."
139 },
140 "currency": {
141 "type": "string",
142 "description": "Currency associated with the country pincode being checked."
143 },
144 "event_id": {
145 "type": "string",
146 "description": "Unique identifier for the event."
147 },
148 "country_iso_code": {
149 "type": "string",
150 "description": "ISO2 code for the country associated with pincode being checked.",
151 "x-not-enum": true
152 },
153 "city": {
154 "type": "string",
155 "description": "City associated with pincode being checked."
156 },
157 "country": {
158 "type": "string",
159 "description": "Country associated with pincode being checked."
160 },
161 "pincode": {
162 "type": "string",
163 "description": "Pincode being validated by the user."
164 },
165 "sector": {
166 "type": [
167 "string",
168 "null"
169 ],
170 "description": "Sector associated with pincode being checked."
171 },
172 "position": {
173 "type": [
174 "string",
175 "null"
176 ],
177 "description": "Position of the product in the listing when it was clicked on. Use `null` if not applicable."
178 },
179 "search_id": {
180 "type": [
181 "string",
182 "null"
183 ],
184 "description": "Identifier for the search journey, if applicable. Use `null` if not applicable."
185 },
186 "company_id": {
187 "type": "integer",
188 "description": "Unique identifier for the company associated with the event."
189 },
190 "event_name": {
191 "type": "string",
192 "description": "Name of the event, typically \"delivery_promise\"."
193 },
194 "event_type": {
195 "type": "string",
196 "description": "Type of the event (e.g., \"click\").",
197 "enum": [
198 "engagement",
199 "click",
200 "conversion",
201 "impression",
202 "search",
203 "identity"
204 ]
205 },
206 "anonymous_id": {
207 "type": "string",
208 "description": "Anonymous identifier for the user."
209 },
210 "company_mode": {
211 "type": "string",
212 "description": "Mode of the company (e.g., \"live\", \"development\").",
213 "enum": [
214 "live",
215 "development"
216 ]
217 },
218 "utm_campaign": {
219 "type": "string",
220 "description": "Specific marketing campaign associated with the product addition."
221 },
222 "utm_medium": {
223 "type": "string",
224 "description": "Marketing medium through which the user arrived at the product."
225 },
226 "utm_source": {
227 "type": "string",
228 "description": "Marketing source driving the traffic to the product."
229 },
230 "event_timestamp": {
231 "type": "string",
232 "format": "date-time",
233 "description": "Timestamp of the event."
234 },
235 "company_created_on": {
236 "type": "string",
237 "format": "date-time",
238 "description": "Timestamp or detailed information indicating when the company was created.\nCan be an ISO 8601 string or a complex object with additional details.\n"
239 }
240 }
241}
Payload Example
1{
2 "context": {
3 "library": {
4 "name": "flick",
5 "version": "1.0.4"
6 },
7 "os": {
8 "name": "Mac OS",
9 "version": "10.15.7"
10 },
11 "timezone": "Asia/Calcutta",
12 "screen": {
13 "width": 1512,
14 "height": 859
15 },
16 "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
17 "locale": "en-GB",
18 "device": {
19 "is_mobile": false
20 }
21 },
22 "event_id": "evt_1234567890",
23 "event_name": "delivery_promise",
24 "version": "1",
25 "event_timestamp": "2025-01-31T12:34:56Z",
26 "user_id": "user_12345",
27 "anonymous_id": "791392dc-e279-43f9-914c-e8a42a9ee421",
28 "company_created_on": "2020-05-20T08:30:00Z",
29 "company_id": 123456,
30 "company_mode": "live",
31 "currency": "INR",
32 "event_type": "click",
33 "city": "Mumbai",
34 "country": "India",
35 "country_iso_code": "IN",
36 "sector": null,
37 "pincode": 400068,
38 "position": "2",
39 "query": "allen solly",
40 "search_id": "search_67890",
41 "utm_campaign": "similar_products",
42 "utm_medium": "product_recommendation",
43 "utm_source": "product_page"
44}