You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否详细说明Shopify默认__st JS对象?各字段含义及用途解析

Great question! Let's break down each field in that __st object you're seeing when running console.log(__st); on Shopify stores—this is part of Shopify's internal analytics and tracking layer, so these fields all tie to how Shopify keeps tabs on sessions, users, and page activity.

Breakdown of the __st Shopify Object Fields

Let's go through each field one by one, including the ones you were unsure about:

  • a: This is the unique Shopify Store ID (also called Merchant ID). Every Shopify store gets a distinct numerical identifier, and this is used internally by Shopify to tell different merchants apart. You can double-check this by looking at the store's admin URL—it'll look like https://[this-number].myshopify.com/admin.

  • offset: This is the timezone offset in seconds for the store's configured timezone. The value -14400 converts to UTC-4 (since 14400 seconds = 4 hours), which is typical for stores using Eastern Daylight Time (EDT). Shopify uses this to align tracking data with the store's local time.

  • reqid: A unique request ID generated for every page load. This is used for debugging and tracing individual requests in Shopify's infrastructure—if you ever need to report a technical issue to Shopify support, this ID helps them pinpoint exactly what happened during that specific page load.

  • pageurl: The base backend URL of the Shopify store (without the https:// prefix). Even if the store uses a custom domain, this field will show the .myshopify.com domain, which is the store's canonical backend address. It helps Shopify track which specific store the activity is occurring on.

  • t: This stands for user type in Shopify's tracking system. The value prospect means you're viewing the store as a non-logged-in visitor (someone who hasn't created an account or signed in). Other possible values you might encounter here include customer (for logged-in store customers) or staff (for store admins and team members).

  • u: This is an anonymous unique user ID (visitor ID). Shopify assigns this to users via a cookie when they first visit the store, letting the platform track behavior across sessions even if the user isn't logged in. This ID stays until the user clears their cookies or the cookie expires.

  • cid: This is the Google Analytics Measurement ID (either GA4 or older Universal Analytics) linked to the store. Shopify integrates with Google Analytics out of the box, and this field passes the store's GA ID to sync tracking data between Shopify and Google's analytics platform.

  • p: This is the page type identifier. The value home means you're on the store's homepage. Common other values include product (product detail pages), collection (collection pages), cart (shopping cart page), checkout (checkout flow), etc. It helps Shopify categorize user activity by page type.


All these fields are part of Shopify's client-side tracking system, used to collect data for analytics, session management, and integration with third-party tools. None of them contain sensitive personal data—the u ID is fully anonymous and isn't tied to user information unless the user logs into an account.

内容的提问来源于stack exchange,提问作者Sachin Sarola

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 10:05:38