---
title: "Get tracking scripts"
method: GET
path: "/papi/project/{projectId}/tracking"
---

# Get tracking scripts

`GET /papi/project/{projectId}/tracking`

## Request

- Base URL: `https://api.websitepublisher.ai`
- URL: `https://api.websitepublisher.ai/papi/project/{projectId}/tracking`
- Auth: OAuth 2 (authorization code, authorization URL `https://api.websitepublisher.ai/dapi/oauth/authorize`, token URL `https://api.websitepublisher.ai/dapi/oauth/token`, scopes: `read`)

Get the current tracking scripts configured for a project.

## Path parameters

- `projectId` integer, required

## Response `200`

Current tracking scripts

- object
  - `success` boolean
  - `data` object
    - `project_id` integer
    - `head_scripts` string, nullable
    - `body_scripts` string, nullable
    - `has_tracking` boolean

---

[API](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api.md) · [All operations](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/revisions/e9df1ef10551?raw)
