Set tracking scripts

Set tracking scripts injected into every page. head_scripts in head, body_scripts before body close. Omit or null to clear.

put/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: write)

Path parameters

projectIdinteger required

Request body

head_scriptsstring

Scripts in head (GTM, Analytics)

body_scriptsstring

Scripts before body close (pixels, chat)

Response

Scripts updated

Changes

No recorded changes to this operation across all 1 revision of this API.