RepoJournal
Shopify

Shopify

Hydrogen, Polaris, and the CLI — the dev platform behind millions of stores

Pick a date

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

References

  1. [1] Use preview identity for store open analytics ↗ Shopify/cli
  2. [2] Merge pull request #8005 from Shopify/store-open-preview-identity Shopify/cli
  3. [3] Remove preview store user ID prefix ↗ Shopify/cli
  4. [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

Related across the cluster

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.