Capture Goodshuffle Pro Website Integration DOM events for analytics
domain: docs.goodshuffle.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Ensure your Website Integration embed is on version 0.4.3 or later (event emitters require it)
Use document.addEventListener("gspro-item-card.click", handler) to capture item detail views, reading item data from data.detail (title, price, category, etc.)
Listen for both gspro-item-card.add and gspro-item-detail.add to catch every "Add to Wishlist" interaction, routing both to the same handler function since they represent the same logical action
Report captured events to Google Analytics or another analytics tool using the fields in data.detail
Confirm event firing by inspecting your browser's console/network tools while interacting with the embedded item list, gallery, or wishlist widgets
Known gotchas
This is a front-end JavaScript widget event system (HTML DOM CustomEvents), not a server-side REST/CRUD API — there is no documented way to read or write Goodshuffle inventory/orders directly over HTTP
"Add to Wishlist" fires as two distinct DOM events (item-card vs. item-detail) that must both be listened for to avoid undercounting
Goodshuffle's public developer docs explicitly scope this site to the Website Integration widget only, not a full platform API
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?