Skip to main content

Overview

Cloudflare Zaraz loads third-party tools like analytics, marketing pixels, and customer support widgets without slowing down your website. Manage configurations, publish changes, and view history.

Initialize the client

Workflow

Manage Zaraz workflow settings.

Update workflow

Update the Zaraz workflow for a zone.
string
required
Zone identifier
object
required
Zaraz workflow configuration
string
Workflow identifier
object
Workflow settings

Get workflow

Retrieve current workflow configuration.

Config

Manage Zaraz configuration.

Update configuration

Update Zaraz configuration for a zone.
string
required
Zone identifier

Get configuration

Retrieve current Zaraz configuration.
array
Configured third-party tools
array
Event triggers
array
Custom variables

Publish

Publish Zaraz configuration changes.

Publish configuration

Publish pending configuration changes to production.
string
required
Zone identifier
string
Description of the changes being published
string
Publish identifier
string
Publish status
string
When the configuration was published

History

View Zaraz configuration history.

List history

Retrieve configuration change history.
string
required
Zone identifier
string
History entry identifier
string
Change description
string
Publication timestamp
string
User who published the changes

Update history entry

Default

Manage default Zaraz settings.

Get default settings

Retrieve default Zaraz configuration.

Export

Export Zaraz configuration.

Export configuration

Export the current Zaraz configuration.
string
required
Zone identifier
Exported configurations can be used for backup, migration, or version control.

Types

Configuration

Zaraz configuration object.
array
Third-party tools (analytics, marketing, support)
array
Event triggers that activate tools
array
Custom variables for tool configuration
Consent management settings

NeoEvent

Tool event configuration.
string
Tool event type
string[]
List of blocking trigger IDs
string[]
List of firing trigger IDs
object
Event payload

Use cases

Zaraz is useful for:
  • Performance: Load third-party tools without blocking page rendering
  • Privacy: Manage user consent and data collection
  • Simplicity: Configure tools without editing code
  • Control: Enable/disable tools from the dashboard
  • Debugging: Test tools in staging before publishing