The Wire · Showcase
SHOPIFY CLI FIXES PREVIEW STORE ANALYTICS IDENTITY
By RepoJournal · Filed · About Shopify
Shopify CLI now correctly attributes preview store commands to the actual shop identity instead of a prefixed placeholder, fixing a mismatch between analytics and backend account UUIDs.
Two merged PRs [1] [2] clean up how preview stores report command activity. The root issue: preview store commands were recording analytics with a `preview:` string prefix on the user ID, but the backend was returning either a real placeholder account UUID or the shop ID directly [3]. This mismatch meant analytics data didn't align with actual store identities. The first patch [1] ensures that when you run `shopify store open --store <preview-store>`, the command reads the preview store from the local auth cache and uses that same cached session metadata to set the analytics user ID. The second patch [4] then removes the unnecessary prefix entirely, since preview store scoping is already handled by the session metadata itself (`kind: 'preview'` and the preview payload). Together, these changes mean your preview store workflows now report cleanly to Monorail with identities that match what the backend actually knows about.
Action items
- → Update Shopify CLI to latest version for correct preview store analytics Shopify/cli [plan]
- → Monitor preview store command analytics in Monorail to verify identity alignment Shopify/cli [monitor]
References
- [1] Use preview identity for store open analytics ↗ Shopify/cli
- [2] Merge pull request #8005 from Shopify/store-open-preview-identity Shopify/cli
- [3] Remove preview store user ID prefix ↗ Shopify/cli
- [4] Merge pull request #8007 from Shopify/remove-preview-user-prefix Shopify/cli
FAQ
- What changed in Shopify on July 8, 2026?
- Shopify CLI now correctly attributes preview store commands to the actual shop identity instead of a prefixed placeholder, fixing a mismatch between analytics and backend account UUIDs.
- What should Shopify teams do about it?
- Update Shopify CLI to latest version for correct preview store analytics • Monitor preview store command analytics in Monorail to verify identity alignment
- Which Shopify repositories shipped on July 8, 2026?
- Shopify/cli