Blotout
Blotout's Medusa plugin: send storefront and order events to Qinto — first-party analytics and identity, with an admin connect flow.
Quality score
3/4Security, Passed5/5
- No install scripts, Passed
- No known vulnerabilities, Passed
- No malware reports, Passed
- No secrets in the package, Passed
- No obfuscation, Passed
Compatibility, Passed5/5
- Medusa version ranges, Passed
- Clean install, Passed
- Build, Passed
- Migrations, Passed
- Startup, Passed
Maintenance, Failed4/5
- Public repository, Passed
- Recent release, Passed
- Up to date with Medusa, Passed
- Tests in CI, FailedThe repository has no CI workflow that runs tests.
- Open-source license, Passed
Documentation, Passed3/3
- Setup instructions, Passed
- English, Passed
- Environment variables, Passed
Version 0.2.0 was checked on Medusa 2.23.1 on Nov 29, 2026. How Gorgo verifies plugins →
Maturity
NewFirst stable release on Oct 1, 2026, 6 versions, releases in 2 of the last 12 months. How Gorgo measures maturity →
@blotout/platform-medusa
By Blotout. Connects your Medusa store to the Blotout Platform, Blotout's first-party analytics and identity platform, and sends your storefront and order events there from your own first-party domain, without an ad blocker in the way.
The package is . In Medusa Admin it appears as Blotout; its runtime in the browser is Qinto ( and ), which is the name the code and routes use.
Install it, paste your first-party domain in the Medusa admin, mount one component in your storefront.
One line in , and everything a merchant chooses — destination, on/off — is set in the admin and stored in your database, so changing it needs no redeploy.
What you get
| Event | When |
|---|---|
| every navigation | |
| a product page | |
| / | cart changes |
| every arrival at checkout and every reload of it, not each step change | |
| / | checkout steps, once per cart on a page; a reload can send them again |
| order confirmation page, once per order on any tab, browser or device | |
| account created |
Identity (email, name, city, country, postcode, address) attaches to the shopper's profile at checkout and on the order.
Every event is sent from the browser, including , which is keyed on the order id so a refreshed confirmation page still counts once. Nothing is sent from your server, and your server holds no Blotout credential — there is no column for one.
1. Install
Add it to :
That is the whole configuration. Everything else — the destination, on/off — is set in Admin → Blotout and stored in your database.
There is no OAuth, no client secret, and no credential of any kind. The one thing this plugin needs is your site's first-party domain (for example ), which is public — it is already visible in the page source of any storefront that loads the collector from it. You copy it from the Blotout Platform and paste it in the admin. The plugin's schema holds, per sales channel, (stored as an https origin) and , and no column for a token because nothing here ever holds one.
Run the migration and start:
In production, rebuild so the admin page is bundled — picks it up automatically, a built admin does not:
No environment variables are required. Nothing calls back into the store, so a backend the internet cannot reach (a local dev store, a private network) configures like any other.
2. Connect, in the admin
The plugin appears as Blotout in the sidebar. Every storefront is configured on its own: a storefront is recognised by its publishable API key, and each key belongs to a sales channel.
One storefront (most stores). The page is a single card:
- Paste your First-party domain and press Save. Find it in the Blotout Platform on your site's page. Paste it as shown (); is optional.
- Saving a domain turns Tracking on, so the store sends straight away. Turning it off asks you to confirm, and keeps the domain so you can resume without re-entering it.
- The badge reads Sending when it is ready.
Several storefronts on one backend. Give each storefront its own sales channel and publishable key (the usual Medusa setup), and its own site in the Blotout Platform. The page then lists every sales channel: switch tracking from the row, and click Edit to paste that store's first-party domain. A store without a domain sends nothing; there is no store-wide default.
If one publishable key is linked to several sales channels with different settings, its storefront uses the one with the lowest sales channel id that has a domain, and the page flags the shared key so you can give each storefront its own key.
Everything is stored in your database, so changing destination or turning tracking off needs no redeploy. A storefront picks the change up on its next page load; tabs already open keep the previous setting until then, and the config response is cached privately for 60 seconds.
3. Storefront
The backend half is done. Your storefront still has to say when a shopper viewed a product or added to cart, because only it knows — but it works that out for itself.
Install the same package in your storefront and import from it — nothing is copied, so plugin updates reach the capture logic through like any other dependency. From your storefront's root:
Let Next compile the package's TypeScript, in :
Mount one component in :
And add one three-line file, :
That one file has to exist for real. Next finds route handlers by scanning your filesystem, so a route sitting in is invisible to the router — but what it does still lives in the package and updates with it.
That is two edits to files you already had, plus one three-line file, and the last of it you will ever write for this plugin. New events ship in a package update; nothing in your product, cart or checkout code is touched, so restyling them cannot break tracking.
It reads the store's first-party domain from , so there is no environment variable to set.
How it captures without touching your pages
Three signals, none of which needs a call site:
- Route changes give directly, and say when a shopper is on a product page, the checkout, or an order confirmation.
- — the route handler you copied — runs on your storefront's own server, where the cookie is readable, and hands the browser the cart, product or order. The browser cannot read that cookie, which is why this file exists.
- A notices when a Server Action completes. Every cart mutation in a Medusa storefront is one, so the component re-reads the cart and compares it to the previous state. The difference is the event: a line going 1 → 3 is of 2.
- A listener on picks up identity from any form a shopper sends — register, login, and each of the profile forms — without those components being touched. A signed-in shopper is also identified from the session on page load, which covers a returning visit where no form is ever submitted. Only verified identities are aliased (linked to a person profile): the signed-in customer's id and email, and the email on a placed order. A form submission sends traits only, because the submit may still fail and an alias is permanent.
- A listener on identifies the shopper on the checkout once an email or phone is filled in, whether or not the fields sit in a . It merges the visible fields with the cart as last read (an address picked from a search box only exists there), so a field edit makes no request of its own, waits until the shopper stops editing, and sends traits only when they differ from the last ones sent.
The visitor cookie
The context route also issues — a first-party visitor id, the same mechanism the WooCommerce, Magento and Salesforce integrations use, under the same name.
| Value | UUID v4, minted once and never replaced |
| Lifetime | 400 days — the real browser maximum, not the century a cookie can ask for |
| Flags | , , on https |
| Scope | widened to the domain shared with your first-party domain when there is one, host-only otherwise |
It exists because the collector's own anonymous id is set by the collector, which makes it third-party until your DNS setup puts the collector on your domain. is set by your storefront's own server, so it is first-party from the first request and stable across page loads either way.
rather than on purpose: the starter's cart and auth cookies are so they survive the cross-site return from a redirect-based payment method, and a visitor id that did not would be lost at exactly the moment a conversion is attributed.
The scope is only widened when your storefront actually sits under that domain. A browser discards a cookie scoped to a domain the response did not come from, so a store at reporting to a Blotout development host () gets a host-only cookie rather than none at all.
An explicit allowlist decides what is read — the nine identity traits, each with the field names that feed it, including the names the checkout uses. The form is never enumerated and no other input is inspected, so a password or a card number in the same submission cannot be picked up by accident. Widening what is collected means editing , which is deliberate.
Deriving beats declaring in two ways beyond the edit count: and come from the authoritative cart rather than a recomputed variant price, and an event only fires for a mutation that actually succeeded.
Patching looks like the obvious way to catch those Server Actions. It does not work — Next captures its own reference while the framework boots, long before a component effect can replace the global, so the patch silently never fires. has no such ordering problem.
Route matching defaults to the Medusa Next.js starter's shapes, so , and . A storefront that moved them passes to the component, as a pattern per event or a function where a pattern will not reach. The rules live in , pure and unit-tested, and MERCHANT-SETUP.md has the reference. Only , and read the path at all, the other six come from cart and customer state and never need configuring.
Notes worth reading before you debug
- Cart mutations are Server Actions. Medusa's is , so nothing inside it can reach the browser runtime — which is why capture observes actions completing rather than hooking their call sites.
- derives a Purchase's event id from . Do not override it, or a refreshed confirmation page counts the order twice.
- Field names are exact. A content item's price is , per unit, not or ; traits are , and , not or ( is sent as a custom trait); not ; and . A wrong name is never rejected: an event field is silently dropped, and a trait silently becomes a custom one.
Configuration reference
The backend takes no plugin options and reads no environment variables. Every store's first-party domain and Tracking switch are set in Admin, so what the Blotout page shows is the whole truth.
Nothing is encrypted at rest because nothing stored is secret: a domain is public and a switch is a boolean.
Troubleshooting
The admin page shows stale behaviour after upgrading the plugin. Medusa's dev server pre-bundles plugin admin extensions with Vite, and the cache key does not change when only the plugin's contents change — so the browser keeps running the previous build and can call routes that no longer exist. Clear both caches and restart:
Then hard-reload the browser. This only affects development; a production produces a fresh bundle each time.
Events are not arriving. Four things, in order: the store's first-party domain in Admin → Blotout matches exactly what the Blotout Platform shows; that store's badge reads Sending; the storefront uses the publishable key of that sales channel; and its root layout mounts the component. with the storefront's answers the first three: it returns the domain that storefront will use (), or .
The collector loads but closes its connection. Each site in the Blotout Platform only accepts pages on its own root domain, its subdomains and the site's allowed origins. Point each storefront at the first-party domain of its own site, or add the storefront's origin to that site in the Blotout Platform.
Every page load looks like a new visitor. The collector's own anonymous id is set by the collector, so it only persists when the collector is served from your first-party domain; on a development host () the browser partitions it away and mints a fresh one per page load. The plugin's cookie (below) is not affected — it is set by your own server and is stable from the first request. Complete the DNS/CNAME setup in the Blotout Platform so the collector is a subdomain of your store, and the two line up.
API routes
| Route | Purpose |
|---|---|
| a storefront reads its own first-party domain here (), chosen by its publishable key | |
| the storefront's context route claims an order's Purchase; once per order, for orders of this storefront placed in the last 24 hours | |
| every sales channel with its domain, switch and status | |
| set one store's first-party domain (, bare host or https origin) and/or turn its tracking on or off |
Four routes, two of them public. returns a domain that is already public and nothing else — no token, because there is none to leak. The claim route returns one boolean, writes one row per order, and answers 404 for an order of another storefront.
License
MIT

