RepoJournal
Shopify

Shopify

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

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: JavaScript Full archive →

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.

One email a day. Unsubscribe in one click.

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

Quick answers

What shipped 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. In total, 2 commits and 2 pull requests landed.
Who contributed to Shopify on July 8, 2026?
1 developer shipped this update, including alfonso-noriega.
What were the notable Shopify updates?
Use preview identity for store open analytics, Merge pull request #8005 from Shopify/store-open-preview-identity, and Remove preview store user ID prefix.

More from Shopify

Daily updates, in your inbox

Follow Shopify

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.