Authentication Required
Tracking-link endpoints require OAuth with these scopes:read:tracking_links- List links, list a link’s users, read a user’s metadatawrite:tracking_links- Create and delete links
Step 1: Create a link
uuid (which you use on the API) and its
linkUrl (the short slug the creator shares):
Step 2: Attach your own metadata
Metadata is captured from the query string of the shared link. There is no API call and no field at creation time. Append your own parameters as plain query parameters, one per key:utm_source, campaign, gclid and
your own names are all treated the same way and captured as-is.
Step 3: Read the metadata back
Once the click is attributed to a fan, read it with the fan’s UUID:
To find the fans to look up, use
GET /tracking-links/{uuid}/users.
Only clicks matched to an account appear there.
Limits
Metadata is sanitized at capture time. Nothing is rejected: over-limit input is silently trimmed, so a click is never lost because of its query string.
If nothing valid remains, the click is still recorded and the metadata endpoint
returns
null.
Overwrite semantics
Each click creates a new impression, and the metadata endpoint returns the metadata of the most recent click attributed to that fan on that link. Metadata is never merged across clicks.- A later click replaces the previous metadata wholesale. Keys present on the earlier click but absent from the later one are gone, not carried forward.
- A later click with no query parameters at all returns
"metadata": null. The earlier value is not preserved.
Attribution timing
- A click made while the visitor is signed in is attributed immediately.
- A click made while signed out is recorded straight away, but stays
unattributed until that visitor signs in from the same browser. Until then the
metadata endpoint returns
nullfor them. - A click made while signed in as the creator who owns the link is not recorded at all. Use a separate fan account when testing.
Metadata on webhooks
Thenew_follower and new_subscriber
legacy events also carry the metadata of the fan’s
most recent attributed click on any of the creator’s tracking links, as
trackingLinkMetadata, alongside trackingLinkUrl. The sanitizing and
most-recent-click rules above apply identically.
Next: Tracking-link endpoints,
or Checkout attribution for the equivalent on checkout links.