Tools•generator
Plausible for Web Analytics
Generates minimal tracking code snippets for analytics tools that avoid cookies and comply with GDPR/CCPA regulations.
Try the tool
client runnerGenerated tracking code
Run the tool to see output.
Examples
Generate Plausible page view code
{
"tool": "Plausible",
"event_type": "page_view",
"is_custom": false
}Expected output
<!-- Plausible Analytics -->
<script>document.addEventListener('DOMContentLoaded', function () {
fetch('https://plausible.io/api/event', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
domain: 'yourdomain.com',
url: window.location.href,
referrer: document.referrer
})
});
});</script>Generate PostHog custom event
{
"tool": "PostHog",
"event_type": "ai_interaction",
"is_custom": true
}Expected output
<!-- PostHog Custom Event -->
<script>
posthog.identify('user_id');
posthog.capture('ai_interaction', {
feature: 'chatbot',
duration: 12.5
});
</script>How it works
Select your analytics tool and event type. The generator creates minimal code that tracks user interactions without cookies, using each tool's API-based tracking method. Custom events include parameters for AI features like chatbots or recommendation engines.