cloudflare-zaraz
БесплатноБез исполняемых скриптовНе проверенServer-side tag management for third-party tools with edge execution, privacy controls, and near-zero performance impact
от enuno★ 17 звёзд на GitHubОб этом скилле
Cloudflare Zaraz
Server-side tag management platform that loads third-party tools at Cloudflare's edge, eliminating client-side performance impact while providing privacy controls and consent management.
Overview
Cloudflare Zaraz offloads third-party tools (analytics, advertising pixels, chatbots, marketing automation) to the cloud, executing at the edge rather than in the browser. This architecture delivers near-zero performance impact while enhancing security and privacy.
Key Benefits
- Performance: Load multiple tools with minimal client impact
- Privacy: Built-in IP anonymization, referrer hiding, user-agent trimming
- Security: Server-side execution reduces attack surface
- Consent: Integrated Consent Management Platform (CMP)
- Simplicity: No code changes needed for most integrations
Getting Started
Prerequisites
- Website proxied through Cloudflare (recommended)
- At least one tool configured in Zaraz
- Auto-inject script enabled (default)
Adding Third-Party Tools
- Navigate to Zaraz > Tools configuration in Cloudflare dashboard
- Select Third-party tools > Add new tool
- Browse the tools catalog and select your tool
- Configure tool-specific settings
- Set up actions with firing triggers
- Save configuration
Automatic Action Types
When tools support automatic actions:
- Pageviews: Track all page loads automatically
- Events: Monitor via
zaraz.track()Web API - E-Commerce: Process transactions via
zaraz.ecommerce()API
Web API
The Zaraz Web API enables programmatic control from anywhere in the <body> tag.
zaraz.track()
Track custom events and user actions.
// Syntax
zaraz.track(eventName, [eventProperties])
// Basic event
zaraz.track("button_click")
// Event with properties
zaraz.track("purchase", {
value: 200,
currency: "USD",
product_id: "SKU-123"
})
// Async usage
await zaraz.track("signup_complete", { plan: "premium" })
Common Use Cases:
- User actions (sign-ups, button clicks, purchases)
- Page interactions (widget loads, element impressions)
- Form submissions
Accessing Properties in Triggers:
{{ client.value }}
{{ client.`product_id` }} // Use backticks for special characters
zaraz.set()
Store variables for use across all events without repetition.
// Syntax
zaraz.set(key, value, [options])
// Page scope (cleared on navigation)
zaraz.set("page_category", "blog", { scope: "page" })
// Session scope (persists during session)
zaraz.set("user_tier", "premium", { scope: "session" })
// Persist scope (localStorage, survives sessions) - DEFAULT
zaraz.set("user_id", "12345", { scope: "persist" })
zaraz.set("user_id", "12345") // Same as above
// Unset a variable
zaraz.set("user_id", undefined)
Scope Options:
| Scope | Persistence | Use Case |
|---|---|---|
page |
Current page only | Page-specific context |
session |
Browser session | User session data |
persist |
localStorage (default) | Cross-session identity |
zaraz.ecommerce()
Track e-commerce events with standardized data structure.
// Syntax
zaraz.ecommerce(eventName, eventProperties)
// Product viewed
zaraz.ecommerce("Product Viewed", {
product_id: "507f1f77",
sku: "G-32",
name: "Monopoly",
price: 18.99,
category: "Games"
})
// Add to cart
zaraz.ecommerce("Product Added", {
product_id: "507f1f77",
name: "Monopoly",
price: 18.99,
quantity: 1
})
// Order completed
zaraz.ecommerce("Order Completed", {
order_id: "50314b8e",
total: 27.50,
revenue: 25.00,
shipping: 3.00,
tax: 2.00,
currency: "USD",
products: [
{
product_id: "507f1f77",
name: "Monopoly",
price: 18.99,
quantity: 1
}
]
})
Supported Events (18 total):
- Product List Viewed, Products Searched
- Product Clicked, Product Viewed, Product Added, Product Removed
- Product Added to Wishlist
- Cart Viewed
- Checkout Started, Checkout Step Viewed, Checkout Step Completed
- Payment Info Entered, Shipping Info Entered
- Order Completed, Order Updated, Order Refunded, Order Cancelled
- Clicked Promotion, Viewed Promotion
Product Properties:
| Property | Description |
|---|---|
product_id |
Unique identifier |
sku |
Stock keeping unit |
name |
Product name |
brand |
Brand name |
category |
Product category |
variant |
Product variant |
price |
Unit price |
quantity |
Number of items |
coupon |
Applied coupon |
position |
List position |
Order Properties:
| Property | Description |
|---|---|
order_id |
Order identifier |
checkout_id |
Checkout identifier |
total |
Total amount |
revenue |
Revenue (excl. shipping/tax) |
shipping |
Shipping cost |
tax |
Tax amount |
discount |
Discount applied |
currency |
Currency code |
Compatible Tools:
- Google Analytics 4
- Google Analytic
Установить cloudflare-zaraz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cloudflare-zaraz?
Server-side tag management for third-party tools with edge execution, privacy controls, and near-zero performance impact
Как установить скилл cloudflare-zaraz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloudflare-zaraz запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic