Skip to main content
Dub

link.clicked

2 min read

Occurs whenever a link is clicked (or when its QR code is scanned).

Tip

You can scope which links trigger a link.clicked webhook. When creating or editing the webhook in the dashboard, choose one of the following:

  1. All links – trigger the webhook for every link in your workspace.
  2. Include specific folders (recommended) – trigger the webhook for all links in the selected folders.
  3. Include specific links – trigger the webhook only for the links you explicitly select.

If you select the 3rd option, you can programmatically associate specific links with your link.clicked webhook by passing the webhook ID under the webhookIds prop when creating or updating a link.

Response body parameters

All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.

idstring#
The event ID.
eventstring#
The event type that triggered the webhook (e.g., link.clicked).
createdAtstring#
ISO 8601 timestamp when the webhook event was created.
dataobject#
Event-specific data containing detailed information about the event. The data object for the link.clicked event contains the following parameters:
Show object parameters
clickobject#

Details about the click event.

Show click object
idstring#

Unique identifier for the click.

timestampstring#

ISO 8601 timestamp when the click occurred.

urlstring#

The destination URL that was visited.

countrystring#

Country code (e.g. US).

citystring#

City name.

regionstring#

Region or region code.

continentstring#

Continent code (e.g. NA).

devicestring#

Device type (e.g. Desktop, Mobile).

browserstring#

Browser name (e.g. Chrome).

osstring#

Operating system (e.g. Mac OS).

uastring#

User agent string.

refererstring#

Referrer hostname or (direct).

refererUrlstring#

Full referrer URL or (direct).

qrboolean#

Whether the click came from a QR code scan.

ipstring#

IP address of the visitor.