Pixel White-labeling
White-labeling allows you to serve the analyze.swiss tracking script from your own domain, improving tracking accuracy and bypassing ad blockers.
Why White-label?
Section titled “Why White-label?”- Bypass Ad Blockers: First-party requests are rarely blocked
- Trust: Your domain appears in network requests
- Performance: Potentially faster loading from your CDN
Setup Options
Section titled “Setup Options”Option 1: Cloudflare Workers (Recommended)
Section titled “Option 1: Cloudflare Workers (Recommended)”If you use Cloudflare:
- Go to Workers & Pages in Cloudflare
- Create a new Worker
- Use this proxy code:
```javascript export default { async fetch(request) { const url = new URL(request.url); url.hostname = ‘analyze-ingest.thismatters.workers.dev’; return fetch(url.toString(), request); } } ```
- Add a route:
t.yourdomain.com/*
Option 2: CNAME Record
Section titled “Option 2: CNAME Record”Add a CNAME record pointing to our ingest server:
``` t.yourdomain.com CNAME analyze-ingest.thismatters.workers.dev ```
Option 3: Reverse Proxy (Nginx)
Section titled “Option 3: Reverse Proxy (Nginx)”```nginx location /t/ { proxy_pass https://analyze-ingest.thismatters.workers.dev/; proxy_set_header Host analyze-ingest.thismatters.workers.dev; } ```
Using Your White-labeled Domain
Section titled “Using Your White-labeled Domain”Update your tracking script:
```html
```
Verification
Section titled “Verification”- Open your website
- Check Network tab for requests to your domain
- Verify events appear in your dashboard