---
title: "Retrieve Web Visits Tracker Script"
method: GET
path: "/v1/web-visits/tracker"
tags: ["Web Visits", "v1"]
---

# Retrieve Web Visits Tracker Script

`GET /v1/web-visits/tracker`

Retrieve the tracking script for the given account. The response includes the script hash and a ready-to-use HTML snippet to embed on your website to enable visitor tracking.

:::info
Requires the `web_visits:read` OAuth2 scope.
:::

## Query parameters

- `account_id` string, required

## Response `200`

Success

- object
  - `data` WebVisitsTrackerScriptV1, required
    - `type` 'web_visits_tracker_script', required — The type of the object
    - `id` string, required — The unique identifier for the tracker script.
    - `attributes` object, required
      - `timezone` string, required — The timezone for the script (e.g., "Europe/Helsinki", "America/New_york").
      - `script` object, required
        - `hash` string, required — The unique script hash used to identify the tracker.
        - `html` string, required — The HTML code for the tracking script to be inserted in all webpages to be tracked.
  - `meta` object, required
    - `request_id` string, required — A unique identifier assigned to each API request for end-to-end traceability.

## Other responses

- `401` — Unauthorized. The request was rejected because the credentials are missing, invalid, expired, or have been revoked. The client must re-authenticate before retrying. Clients can differentiate via the `code` value of the first item in `errors`.
- `403` — Forbidden. The credentials are valid but the caller is not authorized to perform the request — typically because the user lacks the required permission, the OAuth scope is insufficient, the subscription plan does not include the required entitlement, the `account_id` does not belong to the authenticated user, or the target list is read-only and its members cannot be modified. Clients can differentiate via the `code` value of the first item in `errors`.
- `404` — Not found
- `429` — Too many requests. Either the per-second rate limit or the monthly quota configured for the API key / OAuth application has been exceeded. Clients can differentiate via the `code` value of the first item in `errors`.
- `500` — Internal server error
- `504` — Server timeout

---

[API](https://skmtc.net/leadfeeder/apis/leadfeeder-public-api.md) · [All operations](https://skmtc.net/leadfeeder/apis/leadfeeder-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/leadfeeder/leadfeeder-public-api/revisions/9e2e63ba2a4e/schema)
