On this page
krawlup MCP ডকুমেন্টেশন
প্রতিটি krawlup MCP টুল, কোন ক্রেডেনশিয়াল লাগে, আর কী খরচ। নতুন এসেছেন? /mcp পেজ ট্যুর দেয়। এই পেজ পূর্ণ রেফারেন্স: OAuth ও এজেন্ট কি-র সেটআপ, সম্পূর্ণ টুল ক্যাটালগ, REST টুইন, টার্মিনাল CLI, Chrome এক্সটেনশন, আর সবার জন্য এন্ডপয়েন্ট দ্রুত রাখতে প্রয়োজনীয় লিমিট।
পরিচিতি
krawlup streamable HTTP-র ওপর Model Context Protocol সার্ভার চালায়। এটা স্টেটলেস: সেশন আইডি লাগে না, রেসপন্স সাদামাটা JSON। কানেক্ট হলেই এজেন্ট আপনার প্রোডাক্টের স্কোর, পেছনের ফেল অডিট, AI ফিক্স কার্ড, ফার্স্ট-পার্টি অ্যানালিটিক্স ও কিওয়ার্ড আইডিয়া পড়ে। অতিরিক্ত স্কোপে ফুল রিস্ক্যান শুরু, URL থেকে প্রোডাক্ট যোগ, আর ডিরেক্টরি পাবলিশিংয়ের জন্য জমা (ফ্রি, রিভিউড) করতে পারে, আর প্রতিটি পেমেন্ট ব্রাউজারেই থাকে।
POST https://api.krawlup.com/mcpConnect your agent
One endpoint, every client. Where a client supports both paths, the OAuth flow needs no key at all; an agent key works everywhere and is the only credential that can carry rescan by default. A browser-approved connection gets read + submit, plus rescan only when the client explicitly asked for it and the consent screen listed it (the terminal CLI below does); denying returns the agent to its redirect with error=access_denied. Connections and keys are both managed on the AI agent page.
Claude Code connects over streamable HTTP with one command; the browser handles the approval.
- 1Run this in your project root.
- 2When the agent first needs krawlup it opens your browser; approve while signed in.
- 3The connection sticks. Manage or remove it on the DashboardAI agent page.
claude mcp add --transport http krawlup https://api.krawlup.com/mcp
Windsurf, Zed and VS Code accept the same mcpServers JSON shape as Cursor. Scopes, limits and every tool: krawlup.com/docs.
Agent skills
Instead of (or alongside) MCP, teach your agent krawlup directly. You can install our skills via the open skills.sh directory or the official @krawlup/skills package. Both supply two plain-markdown skills: krawlup-mcp (all 28 tools, scopes and rate limits) and krawlup-analytics-setup (installing the cookieless tag and wiring conversion goals). No code, just instructions your agent reads.
Recommended: Universal agent install (skills.sh)
npx skills add krawlup/krawlup-skills
Alternative: Standalone npm runner
npx @krawlup/skills
With npx skills add krawlup/krawlup-skills, skills automatically link to Claude Code, Cursor, Codex, Windsurf, OpenCode, and 70+ agents. With the standalone npm runner, skills land in ./skills by default (customize with --dir).
Authentication and scopes
| Credential | How it authenticates | Behavior |
|---|---|---|
| Anonymous | no Authorization header | The three public catalog tools only. Invalid credentials get a 401 with an OAuth challenge, never a downgrade. |
| Agent key | Authorization: Bearer sk_ag_… | Created on the AI agent page in your dashboard. Scopes read (always) plus optional rescan and submit; optional expiry date and product restriction; shown once at creation. |
| OAuth connection | Authorization: Bearer sk_mc_… | Granted through OAuth 2.1 with PKCE after one browser approval. Scopes read + submit by default; rescan only when the client requests it and you approve it on the consent screen. One-hour access tokens, 90-day rotating refresh tokens. |
Scopes
readEvery reading tool: products, insights, fix cards, scan history, analytics, keyword ideas. Unlimited calls; costs nothing.
submitadd_product (5 adds/hour), set_product_public and set_product_private (10 flips/hour). Publishing is free and admin-reviewed; the agent never spends money.
rescantrigger_rescan and run_keyword_research (they spend plan allowances), plus the rank-tracking board writes. Default-off on both credential kinds: flip it on agent keys at creation, or approve it on the consent screen for an OAuth connection.
Agents see only their own products. Revoking a key or disconnecting a connection stops the agent on its very next request.
Tool reference
28 tools. Every call is throttled to 60 requests per minute per credential unless a tighter limit is shown. Limits shown in orange differ from that blanket.
Public catalog
No credential. Any agent can explore the public directory before its founder connects anything.
| Tool | Credential | Description |
|---|---|---|
search_products | public | Search the public catalog of directory products in plain language. |
get_product | public | The full public product page, by slug or key. |
check_launch_readiness30/min | public | Audit a URL before adding: bans, blocked platforms, whether the product already exists (and who owns it), plus the optional category list. Run this before add_product. |
Free site report
No credential: the /site-report tool, for any website. Two full scans per calendar month per agent (the credential, or the IP when anonymous, the same limit the website tool enforces, in a separate budget from browser visitors); reads are unlimited. Domains already listed as krawlup products are refused.
| Tool | Credential | Description |
|---|---|---|
get_site_report | public | The free public site report for any website (the /site-report tool): performance, AEO, CRO, SEO crawl, CrUX, OpenRank and the named checks. Cached read; poll after run_site_report until scanStage clears. |
run_site_report6/min | public | Start the free public scan for any website and return immediately. Same 2-full-scans-per-month limit as the website tool, counted per agent (credential, or IP when anonymous). |
Your products and insights
Any credential with the read scope (agent keys always carry read; OAuth grants it by default). Reads mirror the dashboard exactly: insights, scan history and the bottleneck analysis stay readable on any plan state (the same read-only view an expired subscription sees); fix cards additionally require the ai_fix_cards facility and keyword ideas plus rank history the keyword_research facility. compare_products always lists products and scores; its visitor columns need website_analytics and its revenue columns analytics_conversion.
| Tool | Credential | Description |
|---|---|---|
list_products | any credential | Your products on krawlup with their latest scan scores; the source of product keys for every other tool. |
get_my_products_status | read | Your products with their directory visibility. |
compare_products10/min | read | All your products side by side, sorted by any column: unique visitors, views, revenue totals with refunds netted (per-currency in revenue.balances; currencies never sum across), average revenue per conversion, and scan scores; lifetime or over a window (today / 7d / 30d / 90d). Visitor columns need the website_analytics facility and revenue columns analytics_conversion (gated columns come back null with a note). |
get_my_subscription | read | The founder's current subscription: plan, status (active / trial / 3-day grace / expired), abilities, limits (0 = unlimited), this period's usage meters, and what the founder can currently do. Call this first. |
get_insights | read | Full latest report for one product: performance/AEO/authority scores, failing audits, the recommended First Edit, and unresolved AI fix cards (require the ai_fix_cards facility). |
get_fix_cards | read | Every stored AI fix card for one product; what/why/steps plus a paste-ready agent prompt per issue. Requires the ai_fix_cards plan facility. |
get_bottleneck | read | The stored AI bottleneck analysis; the one edit that matters most, why now, expected impact, steps. |
get_scan_history | read | Score-over-time series (last 100 scans): performance, AEO, OpenPageRank, with per-run source and timestamp. |
get_keyword_ideas | read | Stored keyword research: intent-clustered keyword ideas with search volume/difficulty estimates, prioritized content actions, and a per-keyword verdict (own/push/hard/skip). Requires the keyword_research plan facility. |
get_keyword_ranks | read | Rank history for the tracked keywords, as checked by the scanner: latest position (null = checked, outside the top-10), best position, and the series of stored checks. Requires the keyword_research plan facility. |
First-party analytics
Requires an active subscription (or the 3-day renewal grace window). Conversion events additionally require the analytics_conversion facility and the stored AI insight the analytics_ai_insights facility, without which they are stripped from the response.
| Tool | Credential | Description |
|---|---|---|
get_analytics_snippet | read | The exact <script> tag that installs krawlup first-party analytics on the product's own website. The site token is already embedded at data-site="…"; insert BOTH lines yourself; never ask the founder to paste the token. Also returns the product's current excludedPaths board. |
get_analytics_token | read | The raw site token for the product's analytics tag (the data-site value). It is not a secret; it ships in the tagged page source by design. Use it for hand-written tags, the @krawlup/analytics-tag npm package, or custom integrations; get_analytics_snippet already embeds it. |
get_website_analytics | read | First-party analytics for the product's own website: visitors, sessions, bounce, top pages/referrers/countries, AI crawler visits (AI answers / indexing / training, with a partial flag when a crawler query failed); conversion events and AI insights when the plan carries those facilities. |
Directory management
submit scope. set_product_public requests directory publishing — free, admin-reviewed before the listing goes live. Adding always starts private.
| Tool | Credential | Description |
|---|---|---|
add_product5/hour | submit | Add a product with its URL and a one-line tagline: enriches remaining copy and icons and adds it to the dashboard. Adding NEVER publishes: the product is submitted for admin review and goes live once approved; set_product_private withdraws it from the queue. |
set_product_public10/hour | submit | Request directory publishing for a product; free, admin-reviewed before the listing goes live; approved listings carry a dofollow backlink. |
set_product_private10/hour | submit | Remove a product from the public directory (always allowed). |
Scanning and keyword tracking
rescan scope: optional on agent keys, and granted to an OAuth connection only when its client explicitly requests it and you approve it on the consent screen. trigger_rescan and run_keyword_research spend the same plan allowances as their dashboard buttons; add_tracked_keywords and remove_tracked_keywords are free but rescan-scoped because they change what the scanner spends on later passes.
| Tool | Credential | Description |
|---|---|---|
trigger_rescan10/min | rescan · keys only | Starts a fresh full analysis in the background and returns immediately; poll get_insights until scanPending is false. Spends the same plan allowances as a dashboard rescan. |
run_keyword_research6/min | rescan | Runs one keyword research for a product (autocomplete sweep clustered into intent groups with volume/difficulty estimates and content actions). Spends one of the founder's monthly keyword-research runs; the same budget as the dashboard button. Requires the keyword_research plan facility. |
add_tracked_keywords30/min | rescan | Adds keywords to the product's rank-tracking board (max 25 per product). The scanner checks tracked keywords on its scan passes; get_keyword_ranks reads the checked positions. Requires the keyword_research plan facility. |
remove_tracked_keywords30/min | rescan | Removes keywords from the rank-tracking board; their stored check history is deleted with them. Requires the keyword_research plan facility. |
REST API
The same agent key authenticates a small REST twin under /agent/v1, for scripts that do not speak MCP. Scope, budget and gating rules match the MCP tools 1:1.
| Method | Route | Purpose |
|---|---|---|
| GET | /api/agent/v1/subscription | The founder's plan: status, abilities, limits and this period's usage meters. |
| GET | /api/agent/v1/products | Your products (public and private) with latest scores. |
| GET | /api/agent/v1/products/overview | All products side by side, sortable: visitors, views, revenue totals and averages, scores; lifetime or ?range=today|7d|30d|90d. Query params: range, sortBy, order, limit. |
| GET | /api/agent/v1/products/{key} | Full insights snapshot for one product + an agent-actionable summary (First Edit, fix cards, bottleneck). |
| GET | /api/agent/v1/products/{key}/keywords | Stored keyword research (intent clusters, volume/difficulty, content actions). |
| POST | /api/agent/v1/products/{key}/rescan | Start a full rescan (rescan scope, 10 requests/minute per key). Returns remaining allowances + poll instructions. |
| POST | /api/agent/v1/products | Add a product from a URL (submit scope). Same pipeline as the browser form; the product waits in admin review. |
| POST | /api/agent/v1/publish | Flip a product's directory visibility (submit scope; free, admin-reviewed; 10 requests/hour). |
curl -H "Authorization: Bearer sk_ag_YOUR_KEY" \ https://api.krawlup.com/agent/v1/products
Terminal (CLI)
@krawlup/cli (source on GitHub) is your krawlup account in the terminal: portfolio, products, scan scores, website analytics and keyword boards, with rescans that spend the same plan allowances as the dashboard buttons. Signed in once through the browser, everything after that is plain text at typing speed, and every number it shows comes straight from your account's own reports, so it can never drift from the website. On top of the account commands it carries ten on-machine diagnostic checks (TLS, DNS, crawl probes, …) plus a free utm link builder — all without login and without touching krawlup's servers, except report, which uses the public API pool (see Local checks below). It runs on Node.js (≥ 18) or Bun (≥ 1.2). Without arguments in a terminal it opens an interactive prompt; with arguments (or outside a terminal) the same commands run once and exit, which is what scripts and CI use.
Install and run
Zero install: run it directly with your preferred runner:
npx @krawlup/cli
Or install it globally so the krawlup binary is everywhere:
npm install -g @krawlup/cli
Sign in and sessions
krawlup login opens your browser: approve the Krawlup CLI connection once and the terminal picks the tokens up on a localhost callback. The consent screen lists exactly what you grant: read your data, rescan to start scans, and submit to manage listings, and the one-hour access tokens rotate silently afterwards. The session sits at ~/.krawlup/session.json (mode 0600, written atomically so a crash can never truncate your refresh token). Revoke any time from the dashboard's AI agent page, or run krawlup logout, which revokes the token family server-side and forgets the session on top of it.
| Variable | Effect |
|---|---|
| KRAWLUP_API | Move the API base (default https://krawlup.com). Must stay https — localhost is allowed for a dev API, because the session token travels on every request. |
| KRAWLUP_KEY | Static escape hatch for CI and headless runs: an agent key from the dashboard AI agent page. Wins over the stored browser session; a 401 on it means the key is dead. |
| NO_COLOR / FORCE_COLOR | NO_COLOR disables ANSI colors across human output; FORCE_COLOR=1 or 0 forces color on or off past TTY auto-detection. --json and --md are always plain text. |
A per-install device id (~/.krawlup/device-id, a random UUID: no hardware fingerprint, nothing cross-site) travels as x-krawlup-device so the server can keep the CLI's quota pool stable. Delete the file and you are a new device as far as anyone can tell.
Command reference
In the interactive prompt every command starts with / (tab completes, ↑↓ recalls history, esc steps back, ctrl+c exits); one-shot mode drops the slash: krawlup analytics myapp.com 30d --json. Products resolve fuzzily: exact key, then exact title, then prefix, then substring, so myapp usually suffices. Two commands are interactive-only: /open (the live redraw-in-place pane with overview, insights, analytics, keywords and history tabs) and /clear.
| Command | Arguments | What you get |
|---|---|---|
overview | [range] [sort] | Portfolio table: visitors, views, revenue, scores. Ranges lifetime|today|7d|30d|90d (default 7d); sorts visitors|views|revenue|conversions|avgRevenue|score|performance|recent. |
products | — | Every product, public and private. |
openinteractive | <product> | Live product pane: redraw-in-place tabs for overview, insights, analytics, keywords and scan history. Press r inside to rescan (asks first). |
insights | <product> | Overall score, failing audits, Authority (DR, DR4, OPR), First Edit and AI fix cards. |
analytics | <product> [today|7d|30d] | Website analytics: totals and deltas, daily chart, top pages, referrers, countries, devices, realtime visitors and AI crawls. |
keywords | <product> | Rank board with trends plus stored ideas and their verdicts. |
history | <product> | Last 100 scans as a trend. |
research | <product> [seed] | Run keyword research. Spends a monthly run: the interactive prompt asks first; one-shot mode runs it directly. |
track | <product> <kw…> | Add keywords to the rank board. |
untrack | <product> <kw…> | Remove keywords from the board. |
scan | <product> | Trigger a full re-scan and wait, streaming progress (esc stops waiting in interactive mode; the scan keeps running). Spends your budget. |
add | <url> | Readiness-check a URL, then add it as a product (starts private; goes live once an admin approves it). |
publish | <product> | Request directory publishing for a product (free — goes through admin review). |
unpublish | <product> | Make a product private again. |
snippet | <product> | The analytics tag plus the excluded-pages board. |
exclude | <product> <paths…> | Replace the excluded-pages board (none clears it). |
subscription | — | Plan, status and usage meters. |
login | [api] | Sign in through the browser (OAuth). Optional API base for a dev API. |
logout | — | Revoke the tokens server-side and forget this machine’s session. |
menuinteractive | — | Reopen the startup menu from the prompt. |
clearinteractive | — | Clear the screen history. |
help | — | List every command. |
- Spending asks first (in interactive mode). Research spends a monthly run and rescans spend your full-analysis budget; the prompt confirms before running either. One-shot mode has nobody to ask, so
krawlup scanandkrawlup researchspend immediately; script accordingly. - Scan waits honestly. After triggering, the CLI polls every 5 seconds;
escstops waiting while the scan keeps running, and one-shot mode prints progress to stderr so stdout stays clean for piping.
Local checks: no account, no API
report (free scan + stored report) talks to the public API; the rest are entirely local. The ten diagnostic commands below run on your machine: no login, no key, no quota for those; nothing touches krawlup's servers for them. Every diagnostic verdict is tri-state: something that could not be measured (a blocked fetch, a DNS failure) reports as unknown, never as a pass or a fail. The spot commands take seconds; check composes all of them and takes about a minute. Snapshots for diff live at ~/.krawlup/snapshots/. utm builds tagged campaign URLs only (same rules as /utm-builder) — not a crawl or audit; it never fetches the destination. The CLI shares the same x-krawlup-device public-scan mechanism as the browser extension.
| Command | Arguments | What you get |
|---|---|---|
report | <domain> | The free full site scan + report, nothing to sign up for. --md prints the markdown export, --json the raw payload. The per-device pool is whatever the server reports. |
check | <domain> | The composed battery: TLS certificate, security + cache headers, email records, AI-crawler access, structured data, the social card, depth-1 links and extractable text. --md renders a shareable markdown report. |
robots | <domain> [--agent] [--path] | Which AI crawlers may read the site, from robots.txt, same parser as the scanner. With --agent GPTBot --path /blog/x it answers one question: may this agent fetch this URL? |
mail | <domain> | SPF, DKIM, DMARC and MX records with the exact DNS record to add for each gap. Missing SPF/DMARC are the two most common real deliverability failures. |
ssl | <domain> | Certificate validity, issuer, expiry countdown and protocol version. |
headers | <url> | Security + cache header audit (HSTS, CSP, MIME sniffing, framing, referrer, COOP, caching) with the exact header to add. |
text | <url> [--as-bot] | What an LLM sees: the page stripped to extractable text, word count and heading outline. --as-bot fetches with the GPTBot user-agent. |
schema | <url> | JSON-LD structured-data lint: types present plus required properties per type (Organization, Product, Article, FAQPage, LocalBusiness, …). |
links | <url> | Depth-1 broken-link check: statuses, redirect chains, mixed content. Probes up to 40 links. |
og | <url> | Social-card lint: og:image/title/description, twitter:card, plus the exact text X/Slack will show when the link is pasted. |
diff | <url> [--reset] | Snapshot a page’s text (~/.krawlup/snapshots/); every later run reports the drift: added/removed lines, title change, word delta. |
utm | flags or --bulk (stdin) | Free UTM campaign URLs — same rules as the browser /utm-builder: --url, --source, --medium, --campaign; optional --term and --content; --bulk reads a JSON array or NDJSON; --json, --csv, --no-lowercase. krawlup utm --help. No network calls — pure URL construction (exit 2 on validation errors with --json). |
Scripting and exit codes
Every data command accepts --json for machines: same renderers, JSON payloads, and errors printed as {"error": true, "message"} instead of human text; --md prints the markdown export of the report and the local checks, and --version / -v prints the installed CLI version. Human verdicts colorize by severity (✓, !, ✗) with a pace-toned progress bar on live report scans (waived when signed in on the beta allowlist). Exit codes stay honest: 2 means the usage was wrong, you are not logged in, or the session died and you must log in again; 1 means the server refused (its sentence is printed verbatim), or, on the local checks, that a concrete finding was measured, so scripts and agents can gate on the code. The local checks never need a login. In CI, where no browser exists, put an agent key from the dashboard AI agent page in KRAWLUP_KEY and call the CLI non-interactively. Agents that would rather speak MCP than spawn a terminal point at https://api.krawlup.com/mcp — the terminal and your agent read the same tools.
Browser extension
The krawlup Chrome extension puts an eight-tab SEO & AI-readiness inspector and krawlup's full site report right inside Chrome's side panel. Open any public webpage and inspect rendered content, indexability, JSON-LD schema, social cards, images, HTTP headers, and outgoing links without leaving the tab or creating an account.
Chrome Web Store
krawlup for Chrome
LiveSide-panel SEO/AEO inspector + full site reports. Free to install; no account required.
Eight inspector tabs
Click the toolbar icon on any public http(s) page to open the side panel. Warning badges show issue counts per tab; rows in Content and Images click-scroll and flash the matching element directly on the page.
| Tab | What it checks |
|---|---|
| Metrics | Overall score ring, band & primary bottleneck, four axis scores (Speed, Search & AI, Conversion, Trust), Authority (DR, DR4, OPR), Lighthouse & CrUX p75 field metrics, AEO readiness (llms.txt, robots.txt AI crawlers, schema, FAQ, OG), Run scan / Rescan, Open full report, and a per-site auto-scan toggle. |
| Content | Rendered <title> (/60) and meta description (/160), word count, reading time, interactive heading outline (H1–H6, click a row to highlight on page), and one-click Markdown export. |
| Index | Canonical URL, meta robots directives, live robots.txt per-bot AI crawler verdicts, and document header probe. |
| Schema | Extracts every JSON-LD block on the active page and validates required properties per schema type (Organization, Product, Article, FAQPage, LocalBusiness, …). |
| Social | Open Graph and Twitter/X Card tag audit plus the link unfurl preview. |
| Images | Inventory of page images checking missing alt attributes, dimensions, and loading hints with click-to-highlight on page. |
| Headers | Live HTTP response security and cache headers probe (HSTS, CSP, X-Frame-Options, Referrer-Policy, COOP, caching). |
| Links | Outgoing link extractor with background status probes for broken links, redirect chains, nofollow/sponsored rels, and internal vs external counts. |
Free scans & privacy
- Local tabs upload nothing. Inspecting the active page across Content, Schema, Social, Images, and Links runs locally in your browser and costs zero scan quota.
- Shared device pool & SPA page snapshots. Like the CLI, the extension sends a pseudonymous UUID (
x-krawlup-device) to meter free site reports. When you open a domain with no report yet (or click Run scan), it may upload the active tab's rendered HTML (up to 1.5M chars, kept 15 minutes, readable only by that exact URL & device) so JS-heavy SPAs scan accurately. Auto-scan runs at most once per domain per 24h and can be toggled off per site in Metrics. - Optional OAuth sign-in & local history. Everything works without an account. Signing in uses OAuth 2.1 + PKCE via /oauth/connect, and Sign out revokes tokens server-side (RFC 7009). Recent pages (up to 50), cached domain reports, and theme preference stay in extension storage.
Install the analytics tag
krawlup's first-party analytics is 5,792 bytes parsed, 2,126 bytes gzipped and 100% cookieless: pageviews on load and on SPA route changes, scroll depth (max % reached per page, beaconed as visitors cross 25/50/75/100% plus a final deepest-point beacon when they leave), custom conversion goals, checkout attribution (revenue webhooks for Stripe, Polar, Dodo Payments, Paddle, Whop and Creem: paste each provider's signing secret in the dashboard; plus SSLCommerz, whose unsigned IPNs are re-validated against SSLCommerz's own Order Validation API before a sale is recorded; plus bKash, which has no webhook at all (your backend reports the payment; Krawlup re-queries bKash before recording); and Razorpay, whose Standard checkouts are auto-hooked by the tracker so checkout notes carry the session, while hosted payment links there record unattributed), and it honors Do Not Track. Conversion attribution is two-sided: the sale credits the session that clicked checkout (last touch), and when the buyer first arrived from somewhere else the original source is kept — the tracker remembers only the first-ever referrer host, in your site's own localStorage, for 90 days (no analytics cookies; DNT/GPC visitors send nothing at all) — so "found via an AI answer, came back direct to pay" shows both ends in the revenue panel. Every product gets its own token on the Dashboard products Website tab, or your agent can fetch it itself with the get_analytics_snippet MCP tool: the snippet returned embeds the token at data-site="…", or get the bare value from get_analytics_token. Agents never need to ask you to paste the token.
Don't want your admin area or logged-in pages counted? Each product has an Excluded pages board (Dashboard product Tracking Setup). Add a path like /admin and it excludes exactly that page and everything under it (/admin/settings too, while a lookalike like /administrator stays tracked). Excluded hits are discarded at intake: never stored, and never counted toward your plan's limits. The rule applies to every integration (script tag, npm, WordPress, Shopify pixel) because enforcement is server-side, takes effect within about a minute, and never changes past data.
Zero Dependencies (HTML tag)
Deferred script: 5,792 bytes parsed, 2,126 bytes gzipped, for static sites, landing pages, or custom frameworks.
NPM Library (@krawlup/analytics-tag)
Type-safe client library for Next.js, Nuxt, React, Vue, SvelteKit, and Astro.
WordPress & WooCommerce
v1.0.0Official WordPress & WooCommerce plugin with automated checkout attribution — live on WordPress.org.
Shopify (Web Pixel)
NativeCopy-paste Customer Events custom pixel with native order attribution.
Zero dependencies (HTML tag)
Prefer no package? Paste this in the <head> of your website or template:
<script>window.krawlup=window.krawlup||function(){(window.krawlup.q=window.krawlup.q||[]).push(arguments)};</script>
<script defer src="https://krawlup.com/t.js" data-site="YOUR_ANALYTICS_TOKEN"></script>Data appears in your Website tab within 60 seconds of the first visit. The script loads asynchronously without blocking DOM rendering or Core Web Vitals.
As a library (NPM)
For Next.js, Nuxt, React, Vue, SvelteKit, and Astro projects, install the official @krawlup/analytics-tag package:
npm i @krawlup/analytics-tag
import { injectKrawlup, trackEvent } from '@krawlup/analytics-tag'
// once, client-side, in your app entry
injectKrawlup({ site: 'YOUR_ANALYTICS_TOKEN' })
// custom conversion goals anywhere; safe to call before the tag loads
trackEvent('purchase', { value: 49.0, currency: 'USD' })WordPress & WooCommerce
Using WordPress or WooCommerce? Install the official Krawlup Analytics plugin on WordPress.org ↗ — search "Krawlup Analytics" in your dashboard's Plugin installer, or download the zip below:
Krawlup Analytics
v1.0.0WordPress & WooCommerce plugin with automated WooCommerce attribution.
Prefer one-click?
In your WordPress dashboard go to Plugins Add New Plugin, search for Krawlup Analytics and install — or grab it from WordPress.org.
- Install & Activate: In your WordPress dashboard, navigate to Plugins Add New Plugin Upload Plugin, choose the downloaded krawlup-analytics.zip, then click Install Now and Activate.
- Paste Site Token: Go to Settings Krawlup Analytics, paste your product's Site Token (from your Krawlup dashboard), and click Save Changes.
- Automated WooCommerce Attribution: When WooCommerce is active, completed checkout totals and currencies are automatically tracked via the
woocommerce_thankyouhook. Idempotency guarantees page refreshes by buyers never double-count revenue. - Internal Traffic Filter: Automatically excludes logged-in WordPress administrators and editors from firing tracking hits to keep your visitor metrics pristine.
Shopify (Custom Web Pixel)
Running a Shopify store? Connect via Shopify's native Customer Events custom pixel with zero app installation and zero code modifications:
Shopify Customer Events Web Pixel
Native, cookieless visitor and revenue attribution inside Shopify's Customer Events sandbox.
- Open Customer Events: In your Shopify Admin, navigate to Settings Customer Events.
- Add Custom Pixel: Click Add custom pixel, enter pixel name Krawlup Analytics, and click Add pixel.
- Paste Pixel Code: Replace any placeholder code with the snippet below (inserting your product's Site Token from your Krawlup dashboard).
- Save & Connect: Click Save, and then click Connect in the upper right.
// Shopify Admin -> Settings -> Customer Events -> Add custom pixel
const SITE_TOKEN = "YOUR_ANALYTICS_TOKEN";
const ENDPOINT = "https://api.krawlup.com/t/hit";
function send(event, t, n, d) {
const doc = event?.context?.document || init?.context?.document;
const p = {
k: SITE_TOKEN,
t: t,
h: doc?.location?.host || "",
p: doc?.location?.pathname || "/",
r: doc?.referrer || "",
n: n,
d: d
};
fetch(ENDPOINT, {
method: "POST",
headers: { "Content-Type": "text/plain" },
body: JSON.stringify(p),
keepalive: true
}).catch(() => {});
}
analytics.subscribe("page_viewed", (event) => send(event, "pageview"));
analytics.subscribe("checkout_completed", (event) => {
const c = event.data?.checkout;
if (!c) return;
send(event, "event", "purchase", {
value: parseFloat(c.totalPrice?.amount || 0),
currency: c.totalPrice?.currencyCode || "USD",
order_id: c.order?.id || c.token || ""
});
});theme.liquid, remove it after enabling the Web Pixel to prevent duplicate visitor counts. Limits and budgets
- Free site report reads are unlimited; scans are not: get_site_report is a cached read with no cost, while run_site_report spends one of the same two full scans per calendar month the /site-report website gives you, counted per agent credential (or per IP when anonymous), in a budget separate from browser visitors.
- 60 requests/minute per credential across all tools; tighter per-tool limits are shown in the tool tables.
- Reads are free and unlimited within the rate limit: no read consumes plan allowances. Some reads are facility-gated exactly like the dashboard: fix cards need the ai_fix_cards facility and keyword ideas the keyword_research facility; conversion events and the stored AI insight arrive only when the plan carries theirs.
- Rescans spend plan allowances: one full analysis plus one page-speed check per billing period, exactly like the dashboard button.
- Keyword tracking is capped, and its history is real: a product tracks up to 25 keywords; every scan pass checks up to 10 of them (least-recently-checked first) and stores the actual top-10 result; positions are never interpolated, and a null position means checked-but-outside-the-top-10, not "no data".
- Publishing is free and admin-reviewed: set_product_public submits the listing; it goes live once an admin approves it, and the agent never pays for anything.
- Analytics needs a subscription: get_analytics_snippet, get_analytics_token and get_website_analytics answer only while the subscription is active or inside the 3-day renewal grace window.
