You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISO 8601 timestamp when the customer canceled their subscription, if applicable.
50
+
</ParamField>
30
51
</Expandable>
31
52
32
53
</ParamField>
33
54
<ParamFieldbody="click"type="object">
34
-
The click event that led to the lead (id, url, ip, continent, country, city, device, browser, os, ua, bot, qr, referer).
55
+
The click event that led to the lead.
56
+
57
+
<Expandabletitle="click object">
58
+
<ParamFieldbody="id"type="string">
59
+
Unique identifier for the click.
60
+
</ParamField>
61
+
<ParamFieldbody="timestamp"type="string">
62
+
ISO 8601 timestamp when the click occurred.
63
+
</ParamField>
64
+
<ParamFieldbody="url"type="string">
65
+
The destination URL that was visited.
66
+
</ParamField>
67
+
<ParamFieldbody="country"type="string">
68
+
Country code (e.g. <code>US</code>).
69
+
</ParamField>
70
+
<ParamFieldbody="city"type="string">
71
+
City name.
72
+
</ParamField>
73
+
<ParamFieldbody="region"type="string">
74
+
Region or region code.
75
+
</ParamField>
76
+
<ParamFieldbody="continent"type="string">
77
+
Continent code (e.g. <code>NA</code>).
78
+
</ParamField>
79
+
<ParamFieldbody="device"type="string">
80
+
Device type (e.g. <code>Desktop</code>, <code>Mobile</code>).
81
+
</ParamField>
82
+
<ParamFieldbody="browser"type="string">
83
+
Browser name (e.g. <code>Chrome</code>).
84
+
</ParamField>
85
+
<ParamFieldbody="os"type="string">
86
+
Operating system (e.g. <code>Mac OS</code>).
87
+
</ParamField>
88
+
<ParamFieldbody="ua"type="string">
89
+
User agent string.
90
+
</ParamField>
91
+
<ParamFieldbody="referer"type="string">
92
+
Referrer hostname or <code>(direct)</code>.
93
+
</ParamField>
94
+
<ParamFieldbody="refererUrl"type="string">
95
+
Full referrer URL or <code>(direct)</code>.
96
+
</ParamField>
97
+
<ParamFieldbody="qr"type="boolean">
98
+
Whether the click came from a QR code scan.
99
+
</ParamField>
100
+
<ParamFieldbody="ip"type="string">
101
+
IP address of the visitor.
102
+
</ParamField>
103
+
</Expandable>
104
+
35
105
</ParamField>
36
106
<ParamFieldbody="link"type="object">
37
107
The referral link the lead is associated with (full link object).
38
108
</ParamField>
39
109
<ParamFieldbody="partner"type="object | null">
40
-
Partner details. Only present when the link is a partner referral link (id, name, email, image, country, groupId, totalClicks, totalLeads, totalSales, totalSaleAmount, totalCommissions, etc.).
110
+
Partner details. Only present when the link is a partner referral link (id, name, email, image, country, groupId, totalClicks, totalLeads, totalConversions, totalSales, totalSaleAmount, totalCommissions, etc.).
41
111
</ParamField>
42
112
<ParamFieldbody="metadata"type="object | null">
43
113
Optional metadata associated with the lead event.
@@ -57,33 +127,46 @@ Event triggered when a [new lead is tracked](/docs/api-reference/track/lead).
57
127
"id": "oU5P0SqI8fpwx5bxw1",
58
128
"name": "John",
59
129
"email": "john@example.com",
60
-
"avatar": "https://example.com/john.jpeg"
130
+
"avatar": "https://example.com/john.jpeg",
131
+
"externalId": "",
132
+
"stripeCustomerId": null,
133
+
"sales": 0,
134
+
"saleAmount": 0,
135
+
"createdAt": "2024-08-30T09:53:50.343Z",
136
+
"firstSaleAt": null,
137
+
"subscriptionCanceledAt": null
61
138
},
62
139
"click": {
63
140
"id": "d0UtZqE0BZuBPrJS",
141
+
"timestamp": "2024-08-30T09:53:50.343Z",
64
142
"url": "https://github.com/dubinc/dub",
65
-
"ip": "63.141.57.109",
66
-
"continent": "NA",
67
143
"country": "US",
68
144
"city": "San Francisco",
145
+
"region": "CA",
146
+
"continent": "NA",
69
147
"device": "Desktop",
70
148
"browser": "Chrome",
71
149
"os": "Mac OS",
72
150
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
73
-
"bot": false,
151
+
"referer": "(direct)",
152
+
"refererUrl": "(direct)",
74
153
"qr": false,
75
-
"referer": "(direct)"
154
+
"ip": "63.141.57.109"
76
155
},
77
156
"link": {
78
157
"id": "cm0faqkyn0001txvfwjfeq7gl",
79
158
"domain": "dub.sh",
80
159
"key": "79ys3WA",
81
-
"externalId": null,
82
160
"url": "https://github.com/dubinc/dub",
83
161
"trackConversion": true,
162
+
"externalId": null,
163
+
"tenantId": null,
164
+
"partnerId": null,
165
+
"programId": null,
84
166
"archived": false,
85
167
"expiresAt": null,
86
168
"expiredUrl": null,
169
+
"disabledAt": null,
87
170
"password": null,
88
171
"proxy": false,
89
172
"title": null,
@@ -96,6 +179,10 @@ Event triggered when a [new lead is tracked](/docs/api-reference/track/lead).
0 commit comments