Qnalitics Developer Quickstart
Welcome to Qnalitics documentation. Integrating your client websites takes less than 3 minutes using our automated onboarding wizard or manual script tags.
2. Installing the Tracking Snippet
Add this single asynchronous tag inside the <head> tag of your client website. It weighs less than 1KB and requires zero cookie banners.
<script defer data-domain="klien-domain.com" src="https://qnalitics.marzuqnx.com/plausible/script.js"></script>
Paste inside header.php before </head> or use "Insert Headers and Footers" plugin.
Include in app.blade.php layout or next/script with strategy="afterInteractive".
3. Domain Ownership Verification
To protect client websites from unauthorized reporting, Qnalitics validates ownership via HTML Meta Tag or DNS TXT records.
<meta name="qnalitics-site-verification" content="TOKEN_VERIFIKASI_ANDA" />
Tag alternatif yang juga didukung: <meta name="marzqnalitics-site-verification" content="TOKEN" />
4. Uptime Kuma Webhook Specifications
Uptime Kuma sends JSON event payloads to Qnalitics with a shared cryptographic header secret:
POST https://qnalitics.marzuqnx.com/api/webhooks/uptimeX-Uptime-Kuma-Secret: YOUR_SECRET_KEY{"heartbeat": {"status": 1, "msg": "OK", "ping": 42}, "monitor": {"url": "https://client.com"}}