p202 tracker test

Resolve a tracking link's live destination (follows the redirect)

Side effectrecords a click
All commands

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
$ p202 tracker test 1 --device mobile
geo      status  destination
-------  ------  ------------------------------------------
(local)  302     https://example.com/shop/spring-collection
Real output · p202 1.9.77 · demo dataexit 0

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 test

Set flags below; the command updates as you type.

04Flags

2 flags, plus the global flags every command takes.

FlagWhat it does
--devicestringDevice to simulate: desktop, mobile, tablet
desktopmobiletablet
--geostringComma-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, 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.
  • Following the link records a click (keyword "test") in your reports. Run it on purpose, not as a read-only check.
p202 commands tracker test --json
{
  "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
    }
  ]
}