Docs
Gotmar sets up the go-to-market plumbing for a Next.js app: indexing, tracking, crawl files, audits and a launch plan.
Quick start
- In your app’s folder, run:$
npx gotmar init - Tell your coding agent (Cursor, Claude Code, Copilot, Lovable…): “Set up Gotmar by following GOTMAR.md.”
- Do the few steps only you can do (verify in Google Search Console, import into Bing). Your agent lists them when it finishes, with links. About five minutes.
- Deploy, then open the dashboard link
initprinted. Runnpx gotmar loginfirst if you want the site in your account.
Works with Next.js 14, 15 and 16 (App Router). The tracking line goes in proxy.ts on Next 16 and middleware.ts on 14 and 15.
What your agent sets up
- Server-side visit and crawler counting: one line in proxy.ts or middleware.ts.
- An optional tiny script for clicks, scroll depth and page-to-page flow. No cookies.
- Title, description, canonical and social preview tags in the root layout.
- sitemap.xml, robots.txt (allowing AI search crawlers) and llms.txt.
- Structured data (JSON-LD) for the homepage.
- Sign-up events and, with Stripe, purchase amounts, so the dashboard can show them next to traffic.
- Your product profile, which fills in the dashboard’s Community, Content and AI visibility pages.
CLI
npx gotmar init | Writes GOTMAR.md for your agent, points AGENTS.md, CLAUDE.md and Cursor rules at it, and creates your site key and private dashboard link. |
npx gotmar login | Signs the CLI in to your Gotmar account so init adds sites to it. Also: logout, whoami. |
npx gotmar audit <url> | SEO and AI-search audit of a live URL, as crawlers see it. --pages N crawls more pages; --prompt prints fixes for your agent. |
npx gotmar ci | Adds a GitHub Action that audits every Vercel preview and fails only on new critical problems. |
npx gotmar launch | Writes launch/LAUNCH.md: where to launch, a tracked link for each place, and copy for your agent to fill in. |
npx gotmar indexnow | Submits your sitemap's URLs to Bing, Yandex and other IndexNow engines. Run it after each deploy. |
npx gotmar dashboard | Prints your dashboard links. |
What’s tracked
Counts, not people. No cookie, no browser storage, no visitor or session ID, no IP address and no user agent is stored. For each page view: the path, the referring site, utm tags, country and device type. With the script: click text (emails and long numbers removed), scroll depth and page moves. Crawlers are counted by name. Details are in the privacy policy.
Whether you need a consent banner depends on the laws that apply to you and your visitors. Gotmar doesn’t store anything on the visitor’s device, but check with your own adviser.
The dashboard
- Overview: what’s live (Google, Bing, AI assistants, tracking, site health, launch), your next step, and the week’s numbers.
- Traffic: where visitors come from and land, pages and clicks, click maps.
- Launch: 13 launch channels and more free listings, each with a tracked link that turns green when it sends visitors.
- Community: recent Hacker News threads about your problem, and searches for Reddit, X, LinkedIn, Bluesky and Indie Hackers.
- Content: pages worth having, with prompts for your agent, and a weekly update drafted from your numbers.
- AI visibility: your buyers’ questions with one-click links to ChatGPT, Perplexity and Claude, and a weekly log.
- Site health: the audit, re-run every week, with each fix written for your agent.
Gotmar never posts, submits or connects to an account for you.
The Monday note
Once a week, sites in an account get an email: visits and where they came from, what changed in the audit, and one next step. Turn it off in the dashboard’s Settings or with the link in any email.
Questions
Does it slow my site down?
The visit is recorded after the response is sent, so pages aren’t held up. The optional script is a few kilobytes and loads after the page.
Is my dashboard private?
Yes. It’s either your private link (keep it secret, like a password) or, after gotmar login, your account. Dashboards are never indexed.
What does Pro add?
Keyword research, blog briefs and automatic AI-answer tracking, which cost us per use. It isn’t open yet: join the waitlist.