Cart, Checkout, Wishlist & Quick-View Crawl Traps in Modern Stores
Using <a href="?add-to-cart=123"> links on category grids invites crawlers into millions of session-mutating cart endpoints.
Dmitry K., Technical SEO Lead · SEO Space
Indexation benchmark targets
- Cart actions
- POST <button> not <a href>
- Query strings
- Disallow ?add-to-cart=*
Why Category Grid Links Silently Trigger Infinite Cart Traps
Many e-commerce themes wire "Add to Cart", "Compare", and "Add to Wishlist" buttons as `<a href="/category/?add-to-cart=9842">` links. Every crawler pass follows thousands of fake navigation targets across every paginated page.
Convert state-changing actions to `<button type="button">` elements submitting POST requests or opening lightweight client state, and reinforce exclusions at robots and header layers.
User-agent: *
Disallow: /cart/
Disallow: /checkout/
Disallow: /account/
Disallow: /*?add-to-cart=*
Disallow: /*?wishlist=* Keeping Quick-View Modals Out of URL Parameter Indexation
Quick-view product modals frequently push `?quickview=sku` URLs into the DOM as crawlable anchors, generating duplicate thin fragments indexed alongside full product routes.
Layered defense against non-indexable e-commerce states.
| Endpoint / Action | HTML Markup Standard | Crawler Directive |
|---|---|---|
| Add to Cart / Wishlist | <button> + POST API | Disallow ?add-to-cart=* & /api/ |
| Cart & Checkout Pages | Minimal shell SSR | X-Robots-Tag: noindex + Disallow |
| Product Quick-View Modal | Title <a href> to canonical | Fetch modal data via /api/v1/ |
- Serve quick-view drawers via JSON fetch endpoints blocked in `robots.txt` (`Disallow: /api/`) while pointing product title links strictly to canonical `/products/<slug>/`.
- Ensure `/checkout/` and `/cart/` return `X-Robots-Tag: noindex, nofollow` in addition to `robots.txt` disallow rules in case external links point there.
- Audit server access logs weekly for `?add-to-cart=`, `?compare=`, and `/quickview` crawler hits.
Need this indexation setup audited on your domain?
Send your website URL. We check raw HTML parity, log crawl hits, canonical discipline, and sitemap architecture manually within 24 hours.