JSData & Media Start a project

← All connectors

Schema · Entity relationship diagram

Shopify Analytics tables and relationships

Daily Shopify Analytics reports: online store sessions and the checkout funnel by day, landing page, referrer, device, country and UTM (human and bot traffic split), sales by day with cost of goods sold and gross profit, by channel, product and discount code, and Shop campaign insights. Tables and columns are named after the Shopify Admin API and share one shopify schema with Shopify Orders, Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Checkouts & Discounts.

Live11 tables · 1 relationships
ConnectPaste an API key
Default schemashopify
Source API docshelp.shopify.com
DestinationsAmazon Redshift, Google BigQuery, Snowflake, PostgreSQL, Amazon S3
  • The six Shopify connectors load into one shopify schema. The others: Shopify Orders, Shopify Customers, Shopify Products & Inventory, Shopify Payments & Payouts, Shopify Checkouts & Discounts.
  • Daily reports from ShopifyQL, Shopify's analytics query language (the numbers behind Shopify's Analytics pages). Each table is one ShopifyQL dataset (sessions, sales, shop_campaign_insights) grouped by day and the dimensions in its name; columns are ShopifyQL's own dimension and metric names. Rates are fractions (0.031 = 3.1%); durations are seconds.
  • One row per day and grouping, in the shop's time zone. The last 14 days are re-read on every sync (Shopify keeps reclassifying bot sessions for days) and replaced day by day. Session tables split human and bot traffic (human_or_bot_session). A day with more than 1,000 groups (for example landing pages) keeps the 1,000 largest.
SESSIONSSALESSHOP CAMPAIGNSsales_by_product.product_id joins products.id (ShopifyQL product_id is the product number.)sessions_by_countrysessions_by_country12day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharsession_country_code VARCHAR(65535)session_country_codevarcharsession_country VARCHAR(65535)session_countryvarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsessions_by_devicesessions_by_device11day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharsession_device_type VARCHAR(65535)session_device_typevarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsessions_by_referrersessions_by_referrer13day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharreferring_channel VARCHAR(65535)referring_channelvarcharreferrer_source VARCHAR(65535)referrer_sourcevarcharreferrer_name VARCHAR(65535)referrer_namevarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsales_by_channelsales_by_channel12day DATE · primary keydaydatesales_channel VARCHAR(65535)sales_channelvarcharorders BIGINTordersbigintgross_sales DECIMAL(38,9)gross_salesdecimaldiscounts DECIMAL(38,9)discountsdecimalreturns DECIMAL(38,9)returnsdecimalnet_sales DECIMAL(38,9)net_salesdecimalshipping_charges DECIMAL(38,9)shipping_chargesdecimaltaxes DECIMAL(38,9)taxesdecimaltotal_sales DECIMAL(38,9)total_salesdecimal_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsales_by_discount_codesales_by_discount_code8day DATE · primary keydaydatediscount_code VARCHAR(65535)discount_codevarcharorders BIGINTordersbigintdiscounts DECIMAL(38,9)discountsdecimalgross_sales DECIMAL(38,9)gross_salesdecimalnet_sales DECIMAL(38,9)net_salesdecimal_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsessions_by_landing_pagesessions_by_landing_page12day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharlanding_page_type VARCHAR(65535)landing_page_typevarcharlanding_page_path VARCHAR(65535)landing_page_pathvarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsessions_by_daysessions_by_day13day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigintpageviews BIGINTpageviewsbigintaverage_session_duration DECIMAL(38,9)average_session_durationdecimalconversion_rate DECIMAL(38,9)conversion_ratedecimal_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsales_by_daysales_by_day16day DATE · primary keydaydateorders BIGINTordersbigintgross_sales DECIMAL(38,9)gross_salesdecimaldiscounts DECIMAL(38,9)discountsdecimalreturns DECIMAL(38,9)returnsdecimalnet_sales DECIMAL(38,9)net_salesdecimalshipping_charges DECIMAL(38,9)shipping_chargesdecimaltaxes DECIMAL(38,9)taxesdecimaltotal_sales DECIMAL(38,9)total_salesdecimalcost_of_goods_sold DECIMAL(38,9)cost_of_goods_solddecimalgross_profit DECIMAL(38,9)gross_profitdecimalnet_items_sold BIGINTnet_items_soldbigintcustomers BIGINTcustomersbigintnew_customers BIGINTnew_customersbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsessions_by_utmsessions_by_utm13day DATE · primary keydaydatehuman_or_bot_session VARCHAR(65535)human_or_bot_sessionvarcharutm_source VARCHAR(65535)utm_sourcevarcharutm_medium VARCHAR(65535)utm_mediumvarcharutm_campaign VARCHAR(65535)utm_campaignvarcharsessions BIGINTsessionsbigintonline_store_visitors BIGINTonline_store_visitorsbigintbounces BIGINTbouncesbigintsessions_with_cart_additions BIGINTsessions_with_cart_additionsbigintsessions_that_reached_checkout BIGINTsessions_that_reached_checkoutbigintsessions_that_completed_checkout BIGINTsessions_that_completed_checkoutbigint_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampsales_by_productsales_by_product13day DATE · primary keydaydateproduct_id BIGINT · → products.idproduct_idbigintproduct_title VARCHAR(65535)product_titlevarcharproduct_variant_sku VARCHAR(65535)product_variant_skuvarcharnet_items_sold BIGINTnet_items_soldbigintgross_sales DECIMAL(38,9)gross_salesdecimaldiscounts DECIMAL(38,9)discountsdecimalreturns DECIMAL(38,9)returnsdecimalnet_sales DECIMAL(38,9)net_salesdecimalcost_of_goods_sold DECIMAL(38,9)cost_of_goods_solddecimalgross_profit DECIMAL(38,9)gross_profitdecimal_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampproducts (Shopify Products & Inventory)products (Shopify Products & Inventory)extid BIGINT · primary keyidbiginttitle VARCHAR(65535)titlevarcharshop_campaign_insights_by_dayshop_campaign_insights_by_day7day DATE · primary keydaydateshop_campaign_sales DECIMAL(38,9)shop_campaign_salesdecimalshop_campaign_customers BIGINTshop_campaign_customersbigintshop_campaign_ad_spend DECIMAL(38,9)shop_campaign_ad_spenddecimalshop_campaign_return_on_ad_spend DECIMAL(38,9)shop_campaign_return_on_ad_spenddecimal_jsdata_deleted BOOLEAN_jsdata_deletedbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestamp
Primary keyForeign keyReferencesJoins on (not a key)

Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.

Table reference

11 tables · click a table for its columns
sessions_by_day13 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
pageviewsbigint
average_session_durationdecimal(38,9)
conversion_ratedecimal(38,9)
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sessions_by_landing_page12 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
landing_page_typevarchar(65535)
landing_page_pathvarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sessions_by_referrer13 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
referring_channelvarchar(65535)
referrer_sourcevarchar(65535)
referrer_namevarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sessions_by_device11 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
session_device_typevarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sessions_by_country12 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
session_country_codevarchar(65535)
session_countryvarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sessions_by_utm13 columns · Sessionsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
human_or_bot_sessionvarchar(65535)
utm_sourcevarchar(65535)
utm_mediumvarchar(65535)
utm_campaignvarchar(65535)
sessionsbigint
online_store_visitorsbigint
bouncesbigint
sessions_with_cart_additionsbigint
sessions_that_reached_checkoutbigint
sessions_that_completed_checkoutbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sales_by_day16 columns · Salesshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
ordersbigint
gross_salesdecimal(38,9)
discountsdecimal(38,9)
returnsdecimal(38,9)
net_salesdecimal(38,9)
shipping_chargesdecimal(38,9)
taxesdecimal(38,9)
total_salesdecimal(38,9)
cost_of_goods_solddecimal(38,9)
gross_profitdecimal(38,9)
net_items_soldbigint
customersbigint
new_customersbigint
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sales_by_channel12 columns · Salesshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
sales_channelvarchar(65535)
ordersbigint
gross_salesdecimal(38,9)
discountsdecimal(38,9)
returnsdecimal(38,9)
net_salesdecimal(38,9)
shipping_chargesdecimal(38,9)
taxesdecimal(38,9)
total_salesdecimal(38,9)
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sales_by_product13 columns · Salesshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
product_idJoins to products.id (ShopifyQL product_id is the product number.).bigintFKJoins to products.id (ShopifyQL product_id is the product number.).
product_titlevarchar(65535)
product_variant_skuvarchar(65535)
net_items_soldbigint
gross_salesdecimal(38,9)
discountsdecimal(38,9)
returnsdecimal(38,9)
net_salesdecimal(38,9)
cost_of_goods_solddecimal(38,9)
gross_profitdecimal(38,9)
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
sales_by_discount_code8 columns · Salesshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
discount_codevarchar(65535)
ordersbigint
discountsdecimal(38,9)
gross_salesdecimal(38,9)
net_salesdecimal(38,9)
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
shop_campaign_insights_by_day7 columns · Shop campaignsshow in diagram

Primary key: day

ColumnTypeKeyDescription
dayPrimary key.datePK Primary key.
shop_campaign_salesdecimal(38,9)
shop_campaign_customersbigint
shop_campaign_ad_spenddecimal(38,9)
shop_campaign_return_on_ad_spenddecimal(38,9)
_jsdata_deletedTrue when the record was deleted at the source.booleanTrue when the record was deleted at the source.
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.

Connect Shopify Analytics All connectors