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 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=
$ p202 tracker get-url 1 --json { "data": { "direct_url": "https://track.example.com/tracking202/redirect/dl.php?t202id=216455507\u0026t202kw=", "tracker_id": 1, "tracker_id_public": 216455507, "tracking_params": "?t202id=216455507\u0026t202kw=" } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 tracker get-urlSet flags below; the command updates as you type.
04Flags
12 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --c1string | Value for c1 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --c2string | Value for c2 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --c3string | Value for c3 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --c4string | Value for c4 in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --t202bstring | Value for t202b in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --t202kwstring | Value for t202kw in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --t202refstring | Value for t202ref in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --utm-campaignstring | Value for utm_campaign in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --utm-contentstring | Value for utm_content in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --utm-mediumstring | Value for utm_medium in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --utm-sourcestring | Value for utm_source in the link, as given (e.g. your traffic source's macro); default: the traffic source's own variable |
| --utm-termstring | Value 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,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"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
}
]
}