Overview

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>
WordPress Integration

Paste inside header.php before </head> or use "Insert Headers and Footers" plugin.

Laravel / Next.js

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.

Metode 1: HTML Meta Tag (Rekomendasi Cepat)
<meta name="qnalitics-site-verification" content="TOKEN_VERIFIKASI_ANDA" />

Tag alternatif yang juga didukung: <meta name="marzqnalitics-site-verification" content="TOKEN" />

Metode 2: DNS TXT Record (Cloudflare / Registrar)
Type: TXT | Name: @ | Value: qnalitics-verification=TOKEN_VERIFIKASI_ANDA

4. Uptime Kuma Webhook Specifications

Uptime Kuma sends JSON event payloads to Qnalitics with a shared cryptographic header secret:

Endpoint: POST https://qnalitics.marzuqnx.com/api/webhooks/uptime
Required Header: X-Uptime-Kuma-Secret: YOUR_SECRET_KEY
Payload Event: {"heartbeat": {"status": 1, "msg": "OK", "ping": 42}, "monitor": {"url": "https://client.com"}}