install_tracking_tag
Install a pixel on the website destructive
Description
PUT A PIXEL ON THE BRAND'S WEBSITE: a Meta Pixel, TikTok Pixel, Google tag, LinkedIn Insight Tag, Reddit Pixel, Pinterest Tag, X Pixel or Snap Pixel. It goes through the site connection the brand has. GOOGLE TAG MANAGER (any pixel): a Custom HTML tag with the platform's base code on every page, staged as a draft, and live only with publish:true, through the same confirmation publish_tag_manager_container asks for (a container already live needs confirmPublicId). WIX (Meta, TikTok, Google Ads AW-, Google Analytics G-): a Wix marketing tag, live at once; Wix keeps one per type, so replacing a different pixel needs replaceExisting set to the one being replaced. WEBFLOW, WORDPRESS, SHOPIFY or no site connection: those give an app no way to add code, so the reply is the base code and exactly where to paste it. THE PIXEL ID IS NEVER INVENTED: leave pixelId out and the brand's only pixel on its connected ad account is used (several are listed for you to pick); a given id is checked against that account when it is connected, and refused if it is not the brand's. The code is the platform's own: Meta and Pinterest from the connected account or their published base code, the Google tag from Google's published snippet; for TikTok, LinkedIn, Reddit, X and Snap pass snippet, the base code copied from the platform's events manager (it must contain the id). WITHOUT confirm:true NOTHING IS WRITTEN: the reply says exactly what would change; show the user, get a yes, call again with confirm:true. After a change reaches the site, Hermoso reads the live page (url, default the brand's website) and verify.found says whether the pixel is there: true, false, or null when the page could not be read (never report null as missing). A Tag Manager publish can take a few minutes to reach visitors. For Hermoso's OWN first-party tag (visits, attribution and server-side conversions) use install_hermoso_tag instead. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
platformrequired | "meta" | "tiktok" | "google" | "linkedin" | "reddit" | "pinterest" | "x" | "snapchat" | which pixel: meta, tiktok, google, linkedin, reddit, pinterest, x or snapchat |
pixelId | string | the pixel's id (Meta pixel id, TikTok pixel code, G-/AW-/GT- id, LinkedIn partner id, …). Leave out to use the brand's only pixel on its connected ad account. |
snippet | string | the platform's base code, copied from its events manager. Required for TikTok, LinkedIn, Reddit, X and Snap through Tag Manager or a manual install; it must contain pixelId. |
site | "google_tag_manager" | "wix" | "webflow" | "wordpress" | "shopify" | "manual" | which site connection to use; leave out to use the one the brand has (asked when it has both Tag Manager and Wix) |
containerPath | string | Tag Manager only: accounts/<id>/containers/<id> from list_tag_manager_containers, when several are shared with the brand |
gtmWorkspace | string | Tag Manager only: workspace id or name; default the Default Workspace |
adAccountId | string | the ad account (or TikTok advertiser) to read the pixel from, when the brand has several |
url | string | the page to check afterwards; default the brand's website |
publish | boolean | Tag Manager only: also publish the container so the tag goes live |
confirmPublicId | string | Tag Manager only, with publish: the container's GTM-XXXXXXX id, required when it already has a live version |
replaceExisting | string | Wix only: the id of the site's current pixel of this type, typed back, when installing a different one replaces it |
confirm | boolean | true to make the change; without it nothing is written and the reply says what would change |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/install_tracking_tag.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"install_tracking_tag","arguments":{"platform":"<one of the listed values>"}}}
CLI
hermoso call install_tracking_tag --json '{"platform":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
publish_tag_manager_containerPublish the container to the live siteinstall_hermoso_tagPut the Hermoso tag on the websitelist_tracking_tagsWhich pixels are on the websiteremove_tracking_tagRemove a pixel from the website