Get installation scripts
get_installation_scriptsReturns paste-safe tracking snippets, webhook templates, recommended events, common mistakes and verification instructions for a framework.
framework_snippets keys: init and page_view (always needed), purchase (checkout / order-success flow, has_checkout=true), lead (lead-gen funnel), contact_info (authenticated user views, has_login=true). Without contact_info on a site with login, verify_and_score keeps verification.scoring_complete=false.
common_mistakes[] per snippet are optimal-vs-acceptable notes, not breakage warnings: the tracker deduplicates repeat purchases, accepts late ContactInfo and absorbs React Strict Mode double-fires.
The _sensitive_webhook block carries a live URL and appears only in structuredContent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | Yes | ||
| has_login | No | ||
| auth_token | No | SENSITIVE: JWT from register_and_provision. Optional when `container_hash` is supplied — the MCP server then auto-attaches the JWT cached at register time. Pass this explicitly when you have it from structuredContent. | |
| event_goal | No | ||
| server_name | No | Which connected Tracklution server the container lives on (the server name shown at Connect time, e.g. `Main`). Required when this MCP session is connected to more than one server; pass the SAME server_name on every follow-up installation call for the container — the MCP fills it into `next_action.args` / `next_steps[].tool_args` for you. Ignored when only one server is connected. | |
| app_dir_path | No | src/app | |
| container_id | Yes | ||
| has_checkout | No | ||
| container_hash | No | SECRET: 32-char hash from register_and_provision's data.container.hash. Required ONLY when auth_token is omitted; lets the MCP server look up the cached JWT without exposing it on the wire. | |
| nextjs_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| field | No | ||
| errors | No | ||
| status | No | ||
| details | No | ||
| warnings | No | ||
| rate_limit | No | ||
| http_status | No | ||
| next_action | No |