01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 tracker test <tracker_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 test 1 --device mobile geo status destination ------- ------ ------------------------------------------ (local) 302 https://example.com/shop/spring-collection
$ p202 tracker test 1 --device mobile --json { "data": [ { "destination": "https://example.com/shop/spring-collection", "geo": "(local)", "status": "302" } ] }
Following the link records a test click.
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 tracker testSet flags below; the command updates as you type.
04Flags
2 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --devicestring | Device to simulate: desktop, mobile, tabletdesktopmobiletablet |
| --geostring | Comma-separated country codes to simulate (spoofs X-Forwarded-For) |
05How it works
Fetches the tracker's link and issues a real request per --geo/--device, reporting the HTTP status and final destination. Flags a blank/dropped link.
06For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands tracker test --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.
- Following the link records a click (keyword "test") in your reports. Run it on purpose, not as a read-only check.
{
"path": "p202 tracker test",
"use": "test <tracker_id>",
"short": "Resolve a tracking link's live destination (follows the redirect)",
"long": "Fetches the tracker's link and issues a real request per --geo/--device,\nreporting the HTTP status and final destination. Flags a blank/dropped link.",
"runnable": true,
"flags": [
{
"name": "device",
"type": "string",
"default": "",
"usage": "Device to simulate: desktop, mobile, tablet",
"allowed_values": [
"desktop",
"mobile",
"tablet"
],
"required": false
},
{
"name": "geo",
"type": "string",
"default": "",
"usage": "Comma-separated country codes to simulate (spoofs X-Forwarded-For)",
"required": false
}
]
}