Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

create_tracking_link

Create a tracked link

writes listed directly

Create a tracked link for a post, an ad or an email, so clicks and the leads that follow can be tied to it.

Give the destination (the person's own page) and the channel; attach the campaign or content item when there is one. The link forwards visitors to the destination with campaign parameters and an opaque signed reference. Never put personal data (names, email addresses) in the destination or the parameters. Creating a link publishes nothing: it only exists for the person to use in content they approve.

Arguments

NameTypeNeededWhat it is
destination_url string yes Where the link leads: a full https address on the person's own site.
channel string yes Where the link will be used.One of: organic_social, paid_social, email, referral, other
label string no A short name people will recognize in reports, for example "Spring offer, Instagram bio".
campaign_id string no The campaign this link belongs to.
content_item_id string no The content item this link belongs to.
utm_source string no For example facebook, instagram, linkedin, newsletter.
utm_medium string no Leave empty to use the channel's default.
utm_campaign string no Leave empty to use the campaign's opaque reference code.
utm_content string no Tells variants apart, for example "video-a".
utm_term string no
request_key string no Any unique string for this request. The same key returns the first link instead of creating a second one.

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It is in the list every assistant sees when it connects.

How tools behave: confirmation, review links, errors and limits

get_landing_page · list_landing_pages · list_tracking_links · manage_tracking_links · manage_tracking_sites · request_landing_page_publication · save_landing_page