p202 tracker get-url

Get tracking URL for a tracker

All commands

01Run it

Replace the <placeholders> with your own values, or use the builder below.

p202 tracker get-url <id>

02What you get

Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.

p202 tracker get-url 1
$ p202 tracker get-url 1
direct_url:         https://track.example.com/tracking202/redirect/dl.php?t202id=216455507&t202kw=
tracker_id:         1
tracker_id_public:  216455507
tracking_params:    ?t202id=216455507&t202kw=
Real output · p202 1.9.77 · demo dataexit 0

03Build your command

Pick values and the command line writes itself, quoted and ready to paste.

p202 tracker get-url

Set flags below; the command updates as you type.

04Flags

12 flags, plus the global flags every command takes.

FlagWhat it does
--c1stringValue for c1 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--c2stringValue for c2 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--c3stringValue for c3 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--c4stringValue for c4 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--t202bstringValue for t202b in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--t202kwstringValue for t202kw in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--t202refstringValue for t202ref in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--utm-campaignstringValue for utm_campaign in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--utm-contentstringValue for utm_content in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--utm-mediumstringValue for utm_medium in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--utm-sourcestringValue for utm_source in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable
--utm-termstringValue for utm_term in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable

05How it works

Accepts the internal tracker_id (from tracker list). If you pass the public tracker_id_public (the value in the tracking link), it is resolved automatically.

06For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands tracker get-url --json.
  • With AI_AGENT, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
p202 commands tracker get-url --json
{
  "path": "p202 tracker get-url",
  "use": "get-url <id>",
  "short": "Get tracking URL for a tracker",
  "long": "Accepts the internal tracker_id (from `tracker list`). If you pass the\npublic tracker_id_public (the value in the tracking link), it is resolved\nautomatically.",
  "runnable": true,
  "flags": [
    {
      "name": "c1",
      "type": "string",
      "default": "",
      "usage": "Value for c1 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "c2",
      "type": "string",
      "default": "",
      "usage": "Value for c2 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "c3",
      "type": "string",
      "default": "",
      "usage": "Value for c3 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "c4",
      "type": "string",
      "default": "",
      "usage": "Value for c4 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "t202b",
      "type": "string",
      "default": "",
      "usage": "Value for t202b in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "t202kw",
      "type": "string",
      "default": "",
      "usage": "Value for t202kw in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "t202ref",
      "type": "string",
      "default": "",
      "usage": "Value for t202ref in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "utm-campaign",
      "type": "string",
      "default": "",
      "usage": "Value for utm_campaign in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "utm-content",
      "type": "string",
      "default": "",
      "usage": "Value for utm_content in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "utm-medium",
      "type": "string",
      "default": "",
      "usage": "Value for utm_medium in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "utm-source",
      "type": "string",
      "default": "",
      "usage": "Value for utm_source in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    },
    {
      "name": "utm-term",
      "type": "string",
      "default": "",
      "usage": "Value for utm_term in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable",
      "required": false
    }
  ]
}