server-track-lab

v0.1.0
io.github.Surface-ops/server-track-lab Checked 4 days ago Published 1 month ago

Send server-side conversions to Meta CAPI (live); Google validate-only, LinkedIn dry-run.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

track_event Send a conversion event

Send one server-side conversion (lead, signup, purchase, subscribe...) to server-track-lab, which normalizes, SHA-256 hashes and dedupes it, then forwards it: Meta Conversions API live (with the workspace's own pixel/token), Google Data Manager API validate-only preview (nothing recorded), LinkedIn dry-run (not sent). Reuse the same event_id on retries; duplicates are free and not re-sent. Counts as billed usage (first 1,000/month free, then CA$2 per 1,000).

ParameterTypeDescription
event_id *stringStable unique id for this conversion (also used by Meta for Pixel dedup)
event_name *stringe.g. lead, sign_up, purchase, subscribe, demo_booked
user *objectAt least one identifier (email, phone, external_id, fbp/fbc, gclid...)
currencystringISO 4217, required with value
destinationsarray
event_source_urlstring
testbooleanMark as a test event
timestampstringISO 8601; defaults to now
valuenumber

test_meta_connection Test the Meta connection

Send one synthetic Lead to Meta Events Manager → Test events using the workspace's saved Meta pixel, token and test_event_code. Returns sent/skipped/failed with Meta's error and a hint. Does not affect production data.

get_stats Get usage stats

This month's accepted, deduplicated and failed events for the workspace, plan and free allowance, and the usage split between human/app and agent/bot traffic (both billed the same).