Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/zaraz/configuration.md
1# Zaraz Configuration23## Dashboard Setup451. Domain → Zaraz → Start setup62. Add tool (e.g., Google Analytics 4)73. Enter credentials (GA4: `G-XXXXXXXXXX`)84. Configure triggers95. Save and Publish1011## Triggers1213| Type | When | Use Case |14|------|------|----------|15| Pageview | Page load | Track page views |16| Click | Element clicked | Button tracking |17| Form Submission | Form submitted | Lead capture |18| History Change | URL changes (SPA) | React/Vue routing |19| Variable Match | Custom condition | Conditional firing |2021### History Change (SPA)2223```24Type: History Change25Event: pageview26```2728Fires on `pushState`, `replaceState`, hash changes. **No manual tracking needed.**2930### Click Trigger3132```33Type: Click34CSS Selector: .buy-button35Event: purchase_intent36Properties:37button_text: {{system.clickElement.text}}38```3940## Tool Configuration4142**GA4:**43```44Measurement ID: G-XXXXXXXXXX45Events: page_view, purchase, user_engagement46```4748**Facebook Pixel:**49```50Pixel ID: 123456789012345651Events: PageView, Purchase, AddToCart52```5354**Google Ads:**55```56Conversion ID: AW-XXXXXXXXX57Conversion Label: YYYYYYYYYY58```5960## Consent Management61621. Settings → Consent → Create purposes (analytics, marketing)632. Map tools to purposes643. Set behavior: "Do not load until consent granted"6566**Programmatic consent:**67```javascript68zaraz.consent.setAll({ analytics: true, marketing: true });69```7071## Privacy Features7273| Feature | Default |74|---------|---------|75| IP Anonymization | Enabled |76| Cookie Control | Via consent purposes |77| GDPR/CCPA | Consent modal |7879## Testing80811. **Preview Mode** - test without publishing822. **Debug Mode** - `zaraz.debug = true`833. **Network tab** - filter "zaraz"8485## Limits8687| Resource | Limit |88|----------|-------|89| Event properties | 100KB |90| Consent purposes | 20 |91