Fetch a single tracking tag (Meta Pixel)
Returns the full tag record including the base-code `code` snippet, `lastFiredTime`, `ownerBusinessId`, `isUnavailable`, etc. Meta only (platform `metaads`); other platforms return 405.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Pixel id.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.trackingtags.getTrackingTag({ path: { accountId: 'account_abc123', tagId: 'tag_abc123', },});console.log(data);{
"platform": "metaads",
"tag": {
"id": "string",
"name": "string",
"platform": "metaads",
"kind": "pixel",
"status": "active",
"code": "string",
"lastFiredTime": 0,
"isUnavailable": true,
"installed": true,
"creationTime": 0,
"ownerBusinessId": "string",
"ownerAdAccountId": "string"
}
}{
"error": "Unauthorized"
}Aggregated event stats for a tracking tag (Meta Pixel) GET
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.
Update a tracking tag (Meta Pixel) PATCH
Partial-update a pixel. Whitelisted fields: `name` (rename), `enableAutomaticMatching`, `automaticMatchingFields`, `firstPartyCookieStatus`, `dataUseSetting`. At least one is required. Returns the re-fetched canonical tag. Meta only (platform `metaads`); other platforms return 405. There is no DELETE — Meta has no API to delete a pixel. To stop using one, unshare it from your ad accounts (`DELETE .../tracking-tags/{tagId}/shared-accounts`) or disable it in Events Manager.