Zernio
Zernio
API Reference

Pixels & Tracking Tags

List accounts it is shared withGETList tracking tagsGETCreate a tracking tagPOSTGet ad tracking tagsGETGet aggregated event statsGETGet a tracking tagGETSet ad tracking tagsPATCHUpdate a tracking tagPATCHShare with an ad accountPOSTStop sharing with an accountDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Pixels & Tracking Tags

Get aggregated event stats

Returns aggregated event counts for the pixel (GET /{pixel_id}/stats). Rows are passed through from Meta as-is; their shape depends on the aggregation requested. Meta only (platform metaads); other platforms return 405.


PlatformsMeta
GET
/v1/accounts/{accountId}/tracking-tags/{tagId}/stats

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

accountId*string
tagId*string

Pixel id.

Query Parameters

aggregation?string

Aggregation dimension. Defaults to event.

Default"event"

Value in

  • "event"
  • "host"
  • "url"
  • "url_by_rule"
  • "pixel_fire"
  • "device_type"
  • "device_os"
  • "browser_type"
  • "had_pii"
  • "custom_data_field"
  • "match_keys"
  • "event_source"
  • "event_detection_method"
  • "event_processing_results"
  • "event_total_counts"
  • "event_value_count"
startTime?integer

Unix seconds lower bound.

endTime?integer

Unix seconds upper bound.

Response Body

application/json

application/json

{  "platform": "metaads",  "stats": {    "aggregation": "string",    "startTime": 0,    "endTime": 0,    "rows": [      {}    ]  }}
Was this page helpful?

Get ad tracking tags

Unified read of the platform's native click-URL tracking params. - Meta (facebook/instagram): the creative's `url_tags` (and template_url_spec). - Google (googleads): the campaign's `trackingUrlTemplate` + `finalUrlSuffix`. Subject to the Google Ads API access-tier daily quota; bulk audits need Standard access. - LinkedIn (linkedinads): the campaign's Dynamic UTM `dynamicValueParameters` + `customValueParameters`. Returns 405 for platforms without a click-URL tracking surface (TikTok, X, Pinterest). **Not pixels.** Despite the shared path segment, this endpoint has nothing to do with measurement tags. For an ad account's pixels use `GET /v1/accounts/{accountId}/tracking-tags?adAccountId=act_...` (Meta Pixels, with `kind` and `ownerAdAccountId`) or `GET /v1/accounts/{accountId}/conversion-destinations`.

Get a tracking tag

Returns the full tag record including the base-code `code` snippet, `lastFiredTime`, `ownerBusinessId`, `isUnavailable`, etc. Meta only (platform `metaads`); other platforms return 405. OpenAI Ads has no get-by-id endpoint, so it 405s here too. Use `GET /v1/accounts/{accountId}/tracking-tags` (list) instead.