Install and use the Markup widget

A step-by-step tutorial for getting the @pixelmatters/markup widget running in any web app. Written to be read end-to-end by engineers, designers, product managers, and LLMs.

What you get: a compact toolbar in the corner of your app. Anyone who opens the page sees the pins and their comments, but only signed-in project members see the screenshots attached to them; who can leave a pin is a project setting. New projects take comments from signed-in project members only, so every author can be @-mentioned and notified; a project can instead be opened to anyone on the page, who then comments under a name they type. Threads stream into the Markup dashboard in real time.


1. What you need before you start

You needWhere to get it
A Markup accountMarkup dashboard, signing in with Google or an emailed link. Accounts are invite-only
A ProjectDashboard → + New project
An API keyThe project's API keys page → New key. The raw key is shown once, so copy it
Your API URLThe project's Install page. It looks like https://<your-deployment>.convex.site
(Production) Your host domainThe project's Domains page, where you add app.example.com, *.staging.example.com, and so on. Production deployments require every host on the allowlist; a self-hosted dev deployment can opt into the localhost bypass with MARKUP_ALLOW_LOCALHOST=1

You'll plug apiUrl and apiKey into the widget. That's it. There's no global CSS to import and no provider to wrap your app in.


2. Set up with a coding agent

If you use Claude Code, Cursor, Codex or another agent that can run commands in your project, paste the block below. It installs the widget and has the agent follow the install-markup-widget skill that ships inside the package, so its guidance matches the version you installed. Have the API URL and key from the table above ready: the agent asks for them. Skip ahead to section 3 if you'd rather install by hand.

Set up the @pixelmatters/markup feedback widget in this project.

1. Install @pixelmatters/markup with the project's package manager. If a
   release-age policy blocks the install, stop and ask me instead of changing
   it. If the project has no package.json, skip the install and use the
   script-tag setup the skill describes.
2. Read node_modules/@pixelmatters/markup/skills/install-markup-widget/SKILL.md
   and follow it. If that file isn't on disk, read
   https://markup.pixelmatters.dev/.well-known/agent-skills/install-markup-widget/SKILL.md.
3. Ask me for my Markup project's API URL and key rather than inventing them.
   With a bundler, read both from env vars, and list them in .env.example
   without the values.
4. Add a note to AGENTS.md, or CLAUDE.md if this project uses that, creating
   it if needed: before changing how the Markup widget is set up, read the
   install-markup-widget skill.
5. Show me the diff, and how to check the widget appears.

On a React app built with Vite, webpack, Rspack, Rsbuild or Next.js 16, ask for source paths next, unless the agent already offered them:

Add @pixelmatters/markup-plugin so each pin records the file and line of the
element it's on, following the add-markup-source-paths skill it ships. Tag the
dev server and preview builds, never production.

A chat assistant that can't run commands can read this guide as Markdown instead: give it https://markup.pixelmatters.dev/docs/install.md.


3. Pick an install path

Three ways to add the widget. Pick the one that matches your stack.

Path A: drop-in <script> tag, no build step

Best for static sites, marketing pages, Webflow, WordPress, or any HTML you can edit directly.

Paste this just before </body>:

index.html
<script type="module">
  // Pin the exact version; esm.sh resolves it from npm
  import { init } from 'https://esm.sh/@pixelmatters/markup@1.45.1'
  // or
  // import { init } from 'https://esm.run/@pixelmatters/markup@1.45.1'

  init({
    apiUrl: 'https://your-deployment.convex.site',
    apiKey: 'markup_...',
    position: 'bottom-right', // optional: 'bottom-right' | 'bottom-left' | 'bottom-center'
    theme: 'auto', // optional: 'auto' | 'light' | 'dark'
  })
</script>

Pin the version. A bare @pixelmatters/markup URL resolves to whatever's latest on npm, so a future major release will break your page with no warning. Always pin (@pixelmatters/markup@1.45.1).

When inline JS isn't allowed

Some CMS and page-builder editors only let you paste a <script src=…> tag, with no inline code. For those, use the auto-init form, where config travels via data-* attributes:

html
<script
  type="module"
  src="https://esm.sh/@pixelmatters/markup@1.45.1"
  data-markup-widget="true"
  data-api-url="https://your-deployment.convex.site"
  data-api-key="markup_..."
  data-position="bottom-right"
  data-theme="auto"
></script>

data-markup-widget="true" is required, since it's how the bootstrap finds its own <script> tag (document.currentScript is null for type="module").

Path B: vanilla JS or TypeScript, with any bundler

shell
pnpm add @pixelmatters/markup
main.ts
import { init } from '@pixelmatters/markup'

init({
  apiUrl: 'https://your-deployment.convex.site',
  apiKey: 'markup_...',
  position: 'bottom-right', // optional: 'bottom-right' | 'bottom-left' | 'bottom-center'
  theme: 'auto', // optional: 'auto' | 'light' | 'dark'
})

// init() returns a function that removes the widget again, e.g. on logout.

Path C: React, Vue, or SolidJS

React and Vue have a useMarkup of their own. Solid calls init(), which is plain JS, from its mount hook once at the root, and calls the function it returns on unmount.

React

React 18 or later. Render the component once near your app root:

Markup.tsx
'use client' // Next.js App Router only
import { useMarkup } from '@pixelmatters/markup/react'

export function Markup() {
  useMarkup({
    apiUrl: import.meta.env.VITE_MARKUP_API_URL,
    apiKey: import.meta.env.VITE_MARKUP_API_KEY,
    position: 'bottom-right', // optional: 'bottom-right' | 'bottom-left' | 'bottom-center'
    theme: 'auto', // optional: 'auto' | 'light' | 'dark'
  })
  return null
}

An inline options object is fine; the widget remounts only when a value changes. StrictMode leaves one widget, and enabled: false unmounts it.

On the Next.js App Router, keep 'use client' and read process.env.NEXT_PUBLIC_MARKUP_API_URL and process.env.NEXT_PUBLIC_MARKUP_API_KEY instead: Next doesn't define import.meta.env.

Built with Vite, webpack, Rspack, Rsbuild or Next.js 16? The build plugin tags each element with its file, line and column, so a pin reports where it was written: Tagging source paths at build time.

Vue 3

Vue 3.3 or later. Call it once from your root component:

App.vue
<script setup lang="ts">
import { useMarkup } from '@pixelmatters/markup/vue'

useMarkup({
  apiUrl: import.meta.env.VITE_MARKUP_API_URL,
  apiKey: import.meta.env.VITE_MARKUP_API_KEY,
  position: 'bottom-right', // optional: 'bottom-right' | 'bottom-left' | 'bottom-center'
  theme: 'auto', // optional: 'auto' | 'light' | 'dark'
})
</script>

The composable takes the same options as init(), plus enabled, as a plain object, a ref or a getter (() => ({ …, theme: theme.value })), and remounts the widget only when a value changes. Two components with the same options share one widget until both unmount, and nothing mounts during server rendering.

SolidJS

App.tsx
import { onMount, onCleanup } from 'solid-js'

import { init } from '@pixelmatters/markup'

export default function App() {
  onMount(() => {
    const stop = init({
      apiUrl: import.meta.env.VITE_MARKUP_API_URL,
      apiKey: import.meta.env.VITE_MARKUP_API_KEY,
      position: 'bottom-right', // optional: 'bottom-right' | 'bottom-left' | 'bottom-center'
      theme: 'auto', // optional: 'auto' | 'light' | 'dark'
    })
    onCleanup(stop)
  })

  return <>{/* your app */}</>
}

Tip: keep keys out of the repo. Store apiUrl and apiKey in environment variables (VITE_MARKUP_API_URL, VITE_MARKUP_API_KEY, and so on). The widget key is a public key, bound to your domain allowlist, but rotating it through env vars is still cleaner than committing it.


4. Configuration reference

OptionTypeDefaultDescription
apiUrlstringrequiredYour Convex deployment site URL (https://*.convex.site)
apiKeystringrequiredProject API key minted in the dashboard
position'bottom-right' | 'bottom-left' | 'bottom-center''bottom-right'Initial placement for the toolbar. Users can move it with the Position picker in the overflow menu
theme'light' | 'dark' | 'auto''auto''auto' follows the host's prefers-color-scheme. A user's pick in the overflow menu persists and outranks this option on every later init()
screenshotsScreenshotsConfigcapture enabledCapture toggle and PII-scrub options; see §9
dashboardUrlstringnoneAdds an Account → link to the identity menu for signed-in users. Mostly for self-hosters, whose dashboard origin the widget can't infer
routeParamsstring[][]Query params that name a view rather than filter one, so each gets its own pins. See §Routing
shortcutsbooleantruefalse turns off the bare-key shortcuts (c), for a page that binds those keys itself. Chords and the keys inside an open popover stay on

init(config) is idempotent. Calling it twice with the same config is a no-op, and calling it with new values tears down the old instance first. It returns a function that tears down that instance, and does nothing once a later init() has replaced it. The exported destroy() tears down whichever instance is mounted.

The fab option from before 1.15.0 is deprecated and ignored, because the floating action button became a toolbar pill, which has no variants. Passing it logs a one-time console warning; remove it when convenient.

What's on the toolbar

ControlWhat it does
CommentArms placement. The next click on the page drops a pin, while cmd/ctrl + click hides the whole widget. Grayed out with a red dot while the widget can't reach Markup or the browser is offline, and a gray dot while live updates are paused (§7)
InboxMention notifications for this project, with an unread badge. Signed-in users only
Pins (eye)Hides or shows every pin without hiding the toolbar
IdentityAvatar button. Sign in, or once signed in, name, email, Account →, and Sign out. Anonymous visitors also get "Forget me on this site". On a members-only project this is where a visitor is sent to comment
Overflow (☰)Appearance (Light / Dark / Auto), Position (left / center / right), an Auto-capture screenshots toggle, an Attach by default toggle for screenshots, an Only this URL's pins toggle, a Show resolved threads toggle, Privacy & data, Keyboard shortcuts, Hide for this session, and the widget version

Privacy & data and Keyboard shortcuts open inside the menu itself, replacing the rows until you press Back (or esc). The privacy panel is written for the person leaving feedback and describes the session in front of them: who they're posting as, what a comment sends, what's kept in this site's storage, whether captures are on, and the one host the widget talks to. Anonymous visitors also get "Forget me on this site" there. Nothing to configure; it reads the live runtime.

Handy shortcuts: c starts a markup, and while placing, enter or space drops the pin on the focused element (tab to it first), @ opens the mention picker in a composer, cmd/ctrl + enter posts, enter sends a reply (shift + enter for a new line), cmd/ctrl + . toggles the whole widget, and esc backs out of whatever is open. The Keyboard shortcuts panel lists these, reachable from the menu only, so the widget isn't claiming a plain key your app may already use. The bare c still reaches your page's own handlers as well as the widget's; if your app binds it, pass shortcuts: false (or data-shortcuts="false" on the script tag) and start markups from the toolbar instead.

A comment can carry a little formatting: `code`, a code block between two lines of three backticks, **bold** and *italic*. In a comment box, cmd/ctrl + b, cmd/ctrl + i, cmd/ctrl + e and cmd/ctrl + shift + e put the selection in bold, italic, code or a code block, and pressing one again takes it off; with nothing selected they write an empty pair to type into. The Formatting button beside the emoji and @ buttons opens a menu of the four with their keys, and picking one does what its key does. The dashboard and the widget show it formatted, and their inboxes show the text with the markers taken out; Slack and agents get the text as it was typed.

If your page already runs the Pixelmatters Toolbar (@pixelmatters/toolbar), register markupPlugin() from @pixelmatters/markup/toolbar instead of calling init(). It takes the same options minus position, theme and shortcuts. The toolbar draws the bar and owns c, cmd/ctrl + . and the theme, and has no way to turn c off, so a page that binds c itself should stay on init() with shortcuts: false. Markup adds two buttons, Leave a comment and a Markup panel. The panel opens on a Show pins switch above the Inbox for mentions, with the unread count on its button (signed-out visitors get a sign-in button there), and its Settings hold signing in and out, the auto-capture, attach-by-default, URL-scope and resolved-threads toggles and, one view down, Privacy & data with "Forget me on this site". Its pins hide with the toolbar. Use one or the other, not both. The package README has the details, including what toolbar mode doesn't have yet.


Routing

A thread is filed under a route, and pins are drawn for the route you are standing on. A route is host + pathname, plus a hash-router path when the fragment is one — so app.acme.com/orders and staging.acme.com/orders never share pins, and neither ?page=2 nor #section changes which route you are on. A filter over a page is not a different page, and keying on one would split a conversation across every combination a reader happens to have.

Some apps do route a view by param, though: a multi-step form at one path with ?step=shipping, ?step=payment. Those are different pages sharing a path, and by default they share one set of pins. List the params that name a view:

ts
init({
  apiUrl: '…',
  apiKey: '…',
  routeParams: ['step'],
})

/checkout?step=shipping and /checkout?step=payment now have their own pins. Params you don't list are still ignored, so ?step=payment&page=2 and ?step=payment&page=3 stay one page. Order doesn't matter; the key sorts them.

This reads the real query string only. On a hash router the query sits inside the fragment (#/orders?tab=2), where there is no query string to read, so listing tab does nothing — put the distinguishing part in the router path (#/orders/tab/2) instead, which the route already carries. Tell us if that's your setup.

Changing routeParams re-keys new threads, so pins already stored under the old route stop appearing until we run the matching backfill. Threads store their full URL, so nothing is lost and the backfill can be re-run whenever the list changes — but there is a window. Tell us when you adopt or change it.

Leaving it empty is right for most apps. Where views share a route, each pin's tooltip names the URL it was left on, and the overflow menu's Only this URL's pins narrows the page to one view without changing anything stored.

Anchors and source paths

Two optional attributes, both read from your page as it is:

  • data-markup-anchor="pricing" names an element for pin selectors, ahead of ids and test attributes. Treat it like an id: a pin on an element whose name is unique on the page stays attached when its text changes, while a name several elements share is only a hint beside their position. In a list that can be reordered, name each item (data-markup-anchor="todo-42") so a pin follows its item instead of its position. Unnamed, a moved item is still found when its text is unique in the list, but a pin on one of several identical buttons stays with whichever row now holds its old position.
  • data-markup-source="src/components/Pricing.tsx" is stored with every thread pinned inside that element. The dashboard shows it, and the MCP server hands it to agents as anchorSource. Values over 512 characters are ignored.

Tagging source paths at build time

Writing data-markup-source by hand on every component doesn't last. On a React app built with Vite, webpack, Rspack, Rsbuild or Next.js, @pixelmatters/markup-plugin writes it on every element your JSX renders, pointing at the file, line and column:

shell
pnpm add -D @pixelmatters/markup-plugin
vite.config.ts
import markup from '@pixelmatters/markup-plugin/vite'

export default defineConfig({
  plugins: [markup(), react()],
})

On webpack or Rspack, import @pixelmatters/markup-plugin/webpack or @pixelmatters/markup-plugin/rspack and add markup() to plugins instead; a CommonJS config takes the import's .default. On Rsbuild 2, add markup() to plugins in rsbuild.config.ts, imported from @pixelmatters/markup-plugin/rsbuild: Rsbuild says whether it's serving, so rsbuild dev is tagged and rsbuild build is not. On Next.js 16, wrap the config in next.config.mjs with withMarkup from @pixelmatters/markup-plugin/next, which covers Turbopack and --webpack alike and tags next dev but not next build.

The dev server is tagged by default. A build is not, because a tagged build ships your repository's file paths to everyone who loads it. Since most reviews happen on preview deploys, turn it on for those builds with MARKUP_SOURCE=1 in their environment, or with markup({ source: { enabled: … } }), and leave production alone. A boolean enabled replaces the default for the dev server too, so pass undefined rather than false where you want the default. Server and client builds get identical attributes, so hydration is unaffected. The package README covers the options.

5. Try it: a 60-second smoke test

  1. Drop the snippet from Path A into a blank index.html.
  2. Serve the file from a host the project allows. A production deployment refuses localhost, and the project's Domains page does not take it as an entry, so put the file on a staging or preview host you have added there. A local server (e.g. npx serve .) works only against a self-hosted dev deployment with MARKUP_ALLOW_LOCALHOST=1.
  3. Click the comment button on the toolbar in the bottom-right.
  4. Click anywhere on the page → write a comment → submit.
  5. Open your project in the dashboard. The thread is there.

If nothing appears, jump to Troubleshooting below.


6. How it works (in one diagram)

your app
   │  embeds @pixelmatters/markup (Preact, runs inside an open shadow DOM)
   ▼
widget runtime ──► POST/GET /widget/* (x-markup-api-key + Origin) ──► Convex
                                                                       │
                                                                       ▼
                                                            real-time dashboard
  • Style isolation: the widget mounts inside a shadow root (:host { all: initial !important }). Your CSS can't bleed in or restyle the host element, so display and z-index rules on #markup-widget have no effect; set --markup-display: none or --markup-z-index instead (§8). The widget's CSS can't bleed out, and the widget never prints.
  • Pin re-anchoring: every pin stores a CSS selector and a viewport-fraction fallback. If the selector doesn't match on first render (e.g. an SPA route is still loading), the pin renders dimmed at the fallback position and keeps looking. A MutationObserver on document.body, attached only while a pin is dimmed, looks for that pin again when the page changes where its element could be, a few times a second at most and within a few milliseconds a frame. Any other page change, a resize, or the end of a scroll looks for it too, at most every half second or so; a pin that keeps missing waits longer for those (once a second after ten misses in a row, every five seconds after fifty) until the route changes. A page that changes nothing, not even a class, is not searched again, so an element that only a class change reveals is found at the next scroll, resize or DOM change. Anchored elements are watched with a ResizeObserver, so a pin whose element leaves the page or stops rendering dims again, and one whose element resizes follows it. The exception is an element a closed <details> or a hidden="until-found" block hides: its pin waits on that container, and opening the thread opens it and leaves it open, as find-in-page would. A pin near the left or right edge of the page is pulled in so it is not cut off; the edge is the window's on a page that hides its sideways overflow.
  • SPA-aware: the widget patches history.pushState / replaceState and listens to popstate and hashchange, so threads refresh on route changes. Hash routers work too: #/settings is part of the route a thread is filed under, while a plain #section anchor is not. A query string is not either, unless you opt one in with routeParams — see §Routing.
  • Two origins: comments, identity, screenshots, and error reports go to https://<deployment>.convex.site; live thread updates arrive over a WebSocket to wss://<deployment>.convex.cloud, which the widget derives from apiUrl. A CSP needs both under connect-src.
  • Identity: anonymous by default on projects set to "anyone"; members-only projects ask visitors to sign in before their first comment, and refuse anonymous writes server-side. Signed-in authors show their profile picture on comments and on the toolbar; everyone else gets initials, which is also the fallback when a host CSP blocks the image. Comments written by an AI agent through Markup's MCP server carry a bot badge. They're posted under a team member's name, so the badge is the only way to tell.

7. Troubleshooting

SymptomLikely causeFix
401 Unauthorized in the network tabWrong / revoked key, seen from localhost on a deployment that allows it. Elsewhere a bad key gets the CORS-blocked 403 belowMint a fresh key on the project's API keys page
403 origin not allowedHost domain isn't in the project's allowlistAdd the domain (or *.staging.example.com) on the project's Domains page
Comment button grayed out, red dotThe widget got no response from the deployment: the domain isn't allowlisted or the API key is wrong or revoked (both a 403 the browser shows as a CORS error), or the network or a blocker stops the request. The console names the hostAllowlist the host the console names and check the key on the project's API keys page, or unblock the convex.site host. It retries every minute
Gray dot on the comment buttonRequests to convex.site get through but the live connection to wss://<deployment>.convex.cloud keeps failing: a proxy or a connect-src without it. Commenting works; others' new comments show up lateAllow wss://<deployment>.convex.cloud in connect-src and the proxy
Toolbar doesn't appearAuto-init <script> missing data-markup-widget="true", inline init() not called, or CSP blocks esm.shAdd the attribute, call init(), or allow the script origin in your CSP
Toolbar works locally but not in prodYou're on a non-localhost domain that isn't allowlisted, so the comment button is grayed outAdd the prod domain on the project's Domains page
Toolbar appears but has no stylingSafari before 16.4 or Firefox before 101, and CSP style-src has no 'unsafe-inline': those browsers have no constructed stylesheets, so the widget's stylesheet is a <style> element in its shadow rootAllow it, or drop style-src for the widget's sake
Threads never load, no obvious errorCSP connect-src is missing the convex.site host or the wss://…convex.cloud oneAdd both (see §6)
Two widgets on the pageinit() was called more than once with different configsCall the returned destroy() first, or just call init() again, since it self-replaces

8. Uninstalling / disabling

  • Remove the <script> tag, or stop calling init().
  • With useMarkup (React or Vue), unmounting the component tears it down, and so does enabled: false. Elsewhere, the destroy returned by init() does.
  • To kill an active session manually: import { destroy } from '@pixelmatters/markup'; destroy().
  • To hide it without unmounting, for instance on small screens, set --markup-display: none on #markup-widget or an ancestor such as :root. It inherits, so it works inside a media query. A plain display: none rule doesn't reach the widget. The hidden attribute on #markup-widget works too.
  • To stack it beneath something of yours, such as a cookie banner, set --markup-z-index the same way. It defaults to 2147483647.

Existing threads stay in the dashboard. Uninstalling the widget doesn't delete data.


9. Screenshots & privacy

The widget captures the visible viewport when you drop a pin. Sensitive fields are blacked out before the image is produced: each one comes out as a solid black block that hides everything inside it, images and child elements included. The mask is drawn into the image, so the host page is never changed, and nothing leaves the browser until the user explicitly attaches the screenshot and posts.

Auto-scrubbed by default:

  • every <textarea> and every editable region (contenteditable, unless it is "false"), since free text can hold anything;
  • inputs of type password, email and tel, and a password field a show-password toggle has since flipped to text, once someone has typed into it;
  • any field whose autocomplete contains cc- (every card token), password, one-time-code, email or tel;
  • inputs whose name or id reads like a card, CVC, IBAN, SSN, PIN, one-time code, password, secret or token (cardNumber, cvc, pin…), and any input whose value is a Luhn-valid card number.

A plain text input, a search box say, stays visible. If a field you need to see in screenshots is masked, wrap it in a data-markup-safe container.

To mask anything else, add data-markup-private to the element; it and everything inside it are blacked out. To exempt a section from automatic detection, add data-markup-safe to its container; only the fields inside it are exempt, not the element carrying the attribute. To remove an element from the screenshot entirely, add data-markup-skip.

All of this reaches into web components' open shadow roots, nested ones included. A data-markup-safe on a component's host exempts the fields inside it, and redactSelector is matched inside each shadow root on its own, so a selector can't span the boundary. A closed shadow root's own content never appears in the screenshot; light-DOM children slotted into it still do, and are masked like any other element.

To disable screenshots altogether:

ts
init({
  apiUrl,
  apiKey,
  screenshots: { enabled: false },
})

When a screenshot is attached in the composer, a chip shows how many fields were redacted. Clicking it expands the list of masked selectors so you can verify what was covered before posting.

Deleting a thread, from the widget or the dashboard, deletes its screenshot and thumbnail for good, and so does Forget me on this site for the threads that visitor started. Neither can be restored, not even from a backup: a backup of the project brings the thread back without its image.

End users can also switch capture off for themselves with Auto-capture screenshots in the toolbar's overflow menu. screenshots: { enabled: false } from the host still wins, and that row renders disabled rather than offering a control that does nothing.

Below it, Attach by default makes the composer's "Attach screenshot" box start ticked, for people who attach one to most comments. It is each commenter's own choice, remembered in that site's browser storage, and it only works while auto-capture is on: turning auto-capture off turns it off too. The box can still be unticked on any comment, and the redaction chip shows what was masked before posting.

The same menu's Privacy & data panel spells this out for whoever is leaving the feedback, and says which of the three states is live: capturing, switched off by them, or turned off by your site.

If a capture doesn't work out, it degrades instead of vanishing: an image the browser won't hand over (typically a third-party avatar served without CORS headers) comes through blank while the rest of the page captures, as does an image that hasn't answered within 3 seconds (a font that slow falls back to the next one in its stack), an oversized capture is re-encoded by dropping quality first and then scale until it lands near 400 KB, with the server's 2 MB cap as the hard limit, and if nothing works, or the capture is still unfinished after 30 seconds, the composer reads Screenshot unavailable and the comment posts without one.

An attached screenshot travels with a 640px-wide thumbnail of the same redacted image. Threads show the thumbnail inline and load the full screenshot only when someone opens it.

Screenshots are shown to project members only. In the widget, a visitor who isn't signed in as a member of the project sees threads and comments without their screenshots, on every project whatever its "who can comment" setting. A member who signs in sees them straight away. The dashboard and the MCP server already required membership.

That includes the person who attached the screenshot, deliberately: once the thread is posted, a visitor who isn't a member sees it without the image they sent, because the server can't tell an anonymous author from anyone else holding the same link. The capture was previewed in the composer before posting, and the project's team still sees it.

A screenshot link handed out before this rule took effect keeps working until the screenshot is deleted, because a link carries no expiry of its own. That covers links already sent to visitors who weren't members, and to members since removed from the project. Short-lived signed links, which would end that, are planned.

Page URLs

Each thread stores the URL of the page it was left on, so whoever opens it from the dashboard, a mention or the widget lands on that exact view, query string and all. Before the URL is stored, the widget removes any param whose name says it carries a credential: token, access_token, code, session, auth, key, api_key, secret, password, sig, signature, jwt, otp, nonce, ticket, and names built from those words, such as reset_password_token or X-Amz-Signature. The server does the same for widget builds that predate it. Those values are usually single-use, so keeping them would store a secret without making any link work better. The same applies inside the fragment, for a hash router's query (#/reset?token=…) and an OAuth implicit-flow fragment (#access_token=…). A param listed in routeParams is kept, since its value is already in the route.

The rest of the URL is stored as it was, in your Markup project. It is part of the thread, so the widget sends it to everyone who can see the page's pins, anonymous visitors included, and not only to the project's members, who also see it in the dashboard. If your URLs carry personal data under names the list above doesn't catch, such as ?email=, that data is stored too, so keep it out of URLs or rename the param.

When feedback leaves Markup for an AI agent, over the MCP server, every query value in the URL is replaced with [redacted] and the names are kept: https://app.acme.com/orders?tab=[redacted]. Values pass through for the params in your routeParams, which the thread's route shows anyway, and for the ones a project admin lists under URL params shared with agents on the project's General page. That list can't include a credential-looking name. Slack digests, mention notifications and triage never carry the page URL, only the route.

Product telemetry

The widget reports counts of its own interactions, such as a pin placed, a comment submitted or abandoned, a screenshot captured or a toolbar setting changed, so we can tell which parts of it are used and where people give up. Turn it off with:

ts
init({
  apiUrl,
  apiKey,
  analytics: false,
})

or data-analytics="false" on the script tag.

Worth knowing before you decide, because it is not what "analytics" usually means:

  • No third-party script. Events post to your apiUrl on convex.site, the origin the widget already talks to, and our backend relays them. Nothing new for your CSP.
  • No identifier for your users. Events are keyed on the Markup project, not the person. The session id is generated per page load, kept in memory, and gone when the tab closes.
  • No cookie and no localStorage. Telemetry writes nothing to your page's storage.
  • No content and no IP. Comment text, page URLs, names, and email are never sent, and because the relay is server-side your visitors' IP addresses never reach our analytics provider.

Event names come from a fixed list the server re-checks, and properties are limited to counts, booleans and fixed labels: which setting changed, why a sign-in failed, whether the visitor was anonymous or signed in, and how the widget was installed. Each event also carries the widget version and your site's origin, so we can tell which versions are still running where.