Alphard Golf Internal Analytics

這是一個獨立部署、獨立 Shopify app 身分的內部 analytics 服務,只提供 store analytics API,不會跟現有 production server 上的其他 app 共用 runtime 或 app credentials。

Internal API

Endpoint: https://store-analytics.alphardgolf.com/api/internal/analytics?shop=alphard-golf-usa.myshopify.com

Header: Authorization: Bearer <INTERNAL_API_BEARER_TOKEN>

Required query param in multi-store mode: shop=<store>.myshopify.com

Shopify auth mode: client_credentials

Shopify app install

Default shop: alphard-golf-usa.myshopify.com

Required scopes: read_analytics,read_customers,read_discounts,read_inventory,read_locations,read_marketing_events,read_orders,read_products,read_reports,read_shopify_payments_payouts

Generic install pattern: https://store-analytics.alphardgolf.com/auth/login?shop=your-store.myshopify.com

Isolation