OverviewProductsPlatformsAPI ReferenceResources
Pixels & Tracking Tags

Get store install status

GEThttps://zernio.com/api/v1/accounts/{accountId}/tracking-tags/{tagId}/install

Shows whether a tracking tag is installed on your Shopify store or WordPress, Wix or Webflow site, and whether a WordPress install would be blocked.

PlatformsMetaGoogleTikTokLinkedInPinterestXOpenAIShopifyWordPress

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

accountIdstringRequired
tagIdstringRequired

Tag id (TrackingTag.id).

Query parameters

storeAccountIdstringRequired

The connected Shopify, WordPress, Wix or Webflow account id.

adAccountIdstring

Scopes the tag lookup on platforms whose tag ids live inside an ad account.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Shopify

Whether this tag is the one the Shopify store fires for its platform.

  • installedTagId names the tag of that platform the store currently fires, which can be a different tag.
  • tags lists every Zernio tag on the store (all platforms).

WordPress

Whether the Zernio widget for this pixel is live (in an active widget area, script intact).

  • A read-only preflight returns the theme's widget areas and, when an install would be blocked, the reason POST would return.
  • tags lists every Zernio widget on the site (all platforms, with active).

The preflight reads capabilities only, so ready: true is not a guarantee. DISALLOW_UNFILTERED_HTML or a multisite admin who is not a Super Admin still strips the script, which POST detects.

Install on a Shopify, WordPress, Wix or Webflow site

Installs a pixel on a connected Shopify store or WordPress, Wix or Webflow site, so store visits and purchases are reported without editing the theme. ### Shopify (Meta pixel) Zernio puts the Meta pixel on the store's storefront and checkout through its Shopify web pixel (a Shopify app pixel, no theme edits). The store sends these events to the pixel, each with an event id: - PageView - ViewContent - AddToCart - Search - InitiateCheckout - AddPaymentInfo - Purchase (with value, currency, content_ids and contents) Purchase uses `shopify_order_{orderId}` as its event id. A Conversions API Purchase you send for the same order with that `eventId` is deduplicated by Meta. ### Idempotency and identifiers A store runs one Zernio web pixel holding one tag per platform, so the call is idempotent: - Calling it again updates the install. - Installing a different tag of the same platform replaces the previous one (reported in `replacedTagId`). - Other platforms' tags are kept. Events respect the store's customer privacy settings (marketing consent). - `accountId`: the Meta ads account that owns the pixel (`tagId`). - `storeAccountId`: the Shopify account. ### OpenAI Ads on Shopify Each event is sent through OpenAI's documented image tag (`GET https://bzr.openai.com/v1/sdk/events`) as: - `page_viewed` - `contents_viewed` - `items_added` - `checkout_started` - `order_created` - custom events `search` and `addpaymentinfo` (lowercase, so a Conversions API Search/AddPaymentInfo with the same event id deduplicates) Amounts are sent in the currency's minor unit. The landing page's `oppref` click id is kept in the `__oppref` cookie for 30 days and sent with every event. The image tag cannot carry the `__obref` browser id (OpenAI rejects the parameter), and the search text is never sent. On WordPress the widget holds the official `oaiq` base code and a `page_viewed` call. ### Whop on Shopify For Whop (`whopads`, `tagId` = the Whop account id `biz_...`), events are posted to Whop's conversions endpoint (`https://t.whop.tw/conversions`) the way Whop's own Shopify pixel does: - `page` - `view_content` - `add_to_cart` - `purchase` (with value and currency) - custom `shopify_search_submitted`, `shopify_checkout_started` and `shopify_payment_info_submitted` Each carries Whop's `shopify:<event>:<id>` event id, so a store that also runs Whop's own pixel reports each event once. The visitor id is kept in Whop's `_wuid` cookie for two years. Whop records purchases itself only for checkouts on Whop, so Shopify orders are reported here. On WordPress the widget holds the official snippet with `whop.setScope` and `whop.track("page")`. ### Reconnect and unsupported platforms - 409 `reconnect_required`: the store was connected before pixel support and must re-approve the Zernio app. Send the merchant to `details.authUrl` (the Shopify account id stays the same). - 501: the platform has no install path. ### WordPress Here `storeAccountId` is a connected WordPress.com or self-hosted site. Zernio adds a Custom HTML widget with the Meta pixel base code (fbevents.js, `init`, `PageView`) to a widget area of the active theme. It uses a footer area when there is one, else the first active area; pass `sidebarId` to choose. It then reads the widget back to confirm WordPress kept the `<script>` tag. The widget carries a Zernio marker, so the call is idempotent per pixel: repeating it updates or moves the same widget. Pixel code the site owner pasted by hand is never touched. Several pixels can run side by side (one widget each). When the site cannot run the pixel, nothing is left behind and the call answers 422 `tracking_tag_install_blocked` with `details.reason`: - `insufficient_permissions`: the connected user lacks `edit_theme_options` (needs Administrator). - `scripts_stripped`: WordPress removed the script (the user lacks `unfiltered_html`, e.g. a multisite admin who is not a Super Admin, or `DISALLOW_UNFILTERED_HTML` is set). - `wordpress_com_plan`: a WordPress.com plan that strips scripts (plans without plugins). - `no_widget_areas`: the theme has no widget areas (block themes such as Twenty Twenty-Five). - `widgets_api_unavailable`: no widgets REST API (WordPress older than 5.8, or disabled). The `error` message names the manual alternative (Meta's official WordPress plugin). With `verifyHomepage` (default true) the homepage is fetched afterwards and `homepageCheck` says whether the pixel is visible. `not_found` can be a stale page cache; the widget read-back is authoritative. ### LinkedIn For `linkedinads`, Shopify sends every page view to the Insight Tag. It also sends each store event that has an enabled event-specific Insight Tag conversion rule of the matching type: - view_content = VIEW_CONTENT - add_to_cart = ADD_TO_CART - search = SEARCH - initiate_checkout = START_CHECKOUT - add_payment_info = ADD_BILLING_INFO - purchase = PURCHASE Each conversion carries the event id. Purchase uses `shopify_order_{orderId}`, so a Conversions API event sent to a separate CONVERSIONS_API rule with that `eventId` is deduplicated by LinkedIn. Conversions API rules cannot be fired from a page, and no rule is created for you. The `li_fat_id` click id is read from the landing URL and kept in a first-party cookie for 30 days. WordPress gets LinkedIn's base code, which records page views. ### Pinterest For platform `pinterestads`, Shopify sends these events to the tag: `pagevisit`, `viewcontent`, `addtocart`, `search`, `initiatecheckout`, `addpaymentinfo` and `checkout`. Each carries `event_id` (Purchase: `shopify_order_{orderId}`, for dedup with the Pinterest Conversions API), value, currency, order quantity and line items, plus the `epik` click id kept in the `_epik` cookie. WordPress gets Pinterest's base code (core.js, `load`, `page`) with a `pagevisit` event. The manual fallback is the official Pinterest for WooCommerce plugin (WooCommerce stores). ### Wix Here `storeAccountId` is a connected Wix site. Zernio's Wix app embeds one script on the site that loads each installed tag's base code (the same code WordPress gets), so on Wix each tag records page views. Wix changes pages without reloading. Later page views are recorded again on Wix's own page-view event for Meta, TikTok, Google, Pinterest, OpenAI and Whop; LinkedIn and X count the first page of each visit. Like Shopify, the site holds one tag per platform: installing a different tag of the same platform replaces it (`replacedTagId`) and other platforms' tags are kept. The script is an Advertising script, so it runs only for visitors who accept advertising cookies when the site shows a cookie banner. Sites connected before pixel support answer 409 `reconnect_required` until the owner approves the Zernio app's new permission (`details.authUrl`, or Apps > Manage Apps in the Wix dashboard). ### Webflow Here `storeAccountId` is a Webflow site connected with "Connect with Webflow" (`GET /v1/connect/webflow`). Zernio applies one script to the site's custom code that loads each tag's base code, one tag per platform, as on Wix. Webflow publishes custom code only with the site, so the install answers `publishRequired: true` and the tags fire after the site's next publish (Zernio never publishes it). A site connected with a site token answers 409 `reconnect_required` with `details.authUrl` to connect it with the app (the account id stays the same).

Remove from a Shopify, WordPress, Wix or Webflow site

Removes a tracking tag from your Shopify store or WordPress, Wix or Webflow site, leaving other platforms' tags and hand-added pixel code in place. ### Behavior - Idempotent: nothing installed returns 200 with `installed: false`. - If the store fires a different tag of the same platform, nothing is removed and the call answers 409 `invalid_resource_state`. ### Per store - **Shopify**: other platforms' tags stay. The web pixel itself is deleted once no tag remains. - **Wix**: works the same way, and the site's Zernio script is disabled once no tag remains. - **Webflow**: the Zernio script leaves the site's custom code once no tag remains, live after the next publish. - **WordPress**: deletes every widget Zernio created for this pixel and reports how many in `removed` (0 when nothing was installed). Pixel code added by hand is left alone.

GET/v1/accounts/{accountId}/tracking-tags/{tagId}/install
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.trackingtags.getTrackingTagStoreInstall({  path: {    accountId: 'account_abc123',    tagId: 'tag_abc123',  },  query: {    storeAccountId: 'storeaccount_abc123',  },});console.log(data);
{  "platform": "metaads",  "install": {    "storeAccountId": "string",    "platform": "shopify",    "tagPlatform": "string",    "siteTagId": "string",    "installed": true,    "shopDomain": "string",    "installedTagId": "string",    "tags": [      {        "platform": "string",        "siteTagId": "string",        "widgetId": "string",        "sidebarId": "string",        "active": true      }    ],    "webPixelId": "string",    "siteUrl": "string",    "publishRequired": true,    "method": "wordpress_widget",    "widgetId": "string",    "sidebarId": "string",    "preflight": {      "ready": true,      "reason": "string",      "sidebars": [        {          "id": "string",          "name": "string"        }      ]    }  }}
OpenAPI specification
Was this page helpful?